aboutsummaryrefslogtreecommitdiffstats
path: root/include/scons.mk
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-10-03 01:21:13 +0200
committerFelix Fietkau <nbd@nbd.name>2016-10-13 17:04:43 +0200
commit559fb537d83bc30fc2dfa783292b9f86712966d6 (patch)
treee3ca83302a2dc29ed8f8c3e86a441a50491f69b2 /include/scons.mk
parent5d04dcedb4fb773404dcb0625786eb7706284298 (diff)
downloadupstream-559fb537d83bc30fc2dfa783292b9f86712966d6.tar.gz
upstream-559fb537d83bc30fc2dfa783292b9f86712966d6.tar.bz2
upstream-559fb537d83bc30fc2dfa783292b9f86712966d6.zip
build: use CXXFLAGS if defined
Instead of using TARGET_CFLAGS and EXTRA_CFLAGS in cmake and scons build use the TARGET_CXXFLAGS and EXTRA_CXXFLAGS like it is done for normal make and configure. configure used TARGET_CXXFLAGS and EXTRA_CFLAGS for the CXXFLAGS. The package-default.mk sets "EXTRA_CXXFLAGS = $(EXTRA_CFLAGS)" so using EXTRA_CXXFLAGS flags should be save. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'include/scons.mk')
-rw-r--r--include/scons.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scons.mk b/include/scons.mk
index a8306b658e..2b76710542 100644
--- a/include/scons.mk
+++ b/include/scons.mk
@@ -4,7 +4,7 @@ SCONS_VARS = \
CC="$(TARGET_CC_NOCACHE)" \
CXX="$(TARGET_CXX_NOCACHE)" \
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
- CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
+ CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)"