aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-ifxos/patches/020-no-O3.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2018-03-03 00:22:49 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2018-03-03 00:53:35 +0100
commitc8abbf1e225757b07b7c0e2bc7f6f9f2c9eb5dea (patch)
tree9c4169083a78bbc499d5c06063276316858bdafd /package/kernel/lantiq/ltq-ifxos/patches/020-no-O3.patch
parentc6162fdc501bacd3b1409166b12e38ba55ebd548 (diff)
downloadupstream-c8abbf1e225757b07b7c0e2bc7f6f9f2c9eb5dea.tar.gz
upstream-c8abbf1e225757b07b7c0e2bc7f6f9f2c9eb5dea.tar.bz2
upstream-c8abbf1e225757b07b7c0e2bc7f6f9f2c9eb5dea.zip
lantiq: ltq-ifxos: Do not force O3 build any more
Do not force to build with O3 optimization any more, but take what was selected by the OpenWrt build system. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/kernel/lantiq/ltq-ifxos/patches/020-no-O3.patch')
-rw-r--r--package/kernel/lantiq/ltq-ifxos/patches/020-no-O3.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-ifxos/patches/020-no-O3.patch b/package/kernel/lantiq/ltq-ifxos/patches/020-no-O3.patch
new file mode 100644
index 0000000000..d2e816f5c0
--- /dev/null
+++ b/package/kernel/lantiq/ltq-ifxos/patches/020-no-O3.patch
@@ -0,0 +1,19 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -45,8 +45,6 @@ endif !HAVE_GCC
+
+ if ENABLE_DEBUG
+ used_gcc_cflags += -O1 -g
+-else
+-used_gcc_cflags += -O3
+ endif
+
+ AM_CFLAGS = \
+@@ -92,7 +90,6 @@ endif
+ drvifxos_additional_cflags=\
+ -DLINUX \
+ -D__LINUX__ \
+- -O \
+ -D__KERNEL__ \
+ -DMODULE \
+ -DEXPORT_SYMTAB