summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-02-13 19:04:25 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-02-14 11:01:02 +0100
commit395c04d166ae1fe7484297fe1dc42c9a669e471d (patch)
tree08394255a728aeeadc230072e8f6c574b02abe5d
parentf66d8806b61db818107b7cd222dbe4fa074749f1 (diff)
downloadptxdist-395c04d166ae1fe7484297fe1dc42c9a669e471d.tar.gz
ptxdist-395c04d166ae1fe7484297fe1dc42c9a669e471d.tar.xz
canfestival: fix cflags
Setting CFLAGS as make options overwrites local changes such as adding '-fPIC' for drivers/can_socket/. Use OPT_CFLAGS instead. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/canfestival.make4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/canfestival.make b/rules/canfestival.make
index 90fbb6d8b..49a5a81db 100644
--- a/rules/canfestival.make
+++ b/rules/canfestival.make
@@ -38,7 +38,9 @@ $(CANFESTIVAL_SOURCE):
CANFESTIVAL_PATH := PATH=$(CROSS_PATH)
CANFESTIVAL_ENV := $(CROSS_ENV_CC)
-CANFESTIVAL_MAKEVARS := CFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR)"
+# Overwrite OPT_CFLAGS instead of CFLAGS so we don't loose other flags
+# such as -fPIC for libs. Not this breaks when using "--disable-Ox"
+CANFESTIVAL_MAKEVARS := OPT_CFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR) -O2"
#
# autoconf
#