libre: prevent re.mk from applying its own optimizations
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 26 Nov 2017 21:13:20 +0000 (22:13 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 26 Nov 2017 21:13:23 +0000 (22:13 +0100)
Using the CFLAGS from the environment of Build/Compile the optimizations
from libre now appear after OpenWrt CFLAGS, overriding them. Prevent
that by disabling libre's optimization altogether.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/re/patches/004-prevent-optimization-meddling.patch [new file with mode: 0644]

diff --git a/libs/re/patches/004-prevent-optimization-meddling.patch b/libs/re/patches/004-prevent-optimization-meddling.patch
new file mode 100644 (file)
index 0000000..3b7ba4f
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/mk/re.mk
++++ b/mk/re.mk
+@@ -43,7 +43,6 @@
+ ifneq ($(RELEASE),)
+ CFLAGS  += -DRELEASE
+-OPT_SPEED=1
+ endif