diff options
author | Steven Barth <steven@midlink.org> | 2015-06-29 06:47:49 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-06-29 06:47:49 +0000 |
commit | 4e04783a9168ec76de38ef9f8f04fc326499ca14 (patch) | |
tree | 5f550b695782d6eb6f0f845b44863aa4bb8aa740 | |
parent | d9d55c7753228039e7ce5d7345a3c4d39674ddc5 (diff) | |
download | master-187ad058-4e04783a9168ec76de38ef9f8f04fc326499ca14.tar.gz master-187ad058-4e04783a9168ec76de38ef9f8f04fc326499ca14.tar.bz2 master-187ad058-4e04783a9168ec76de38ef9f8f04fc326499ca14.zip |
toolchain: only use fortify-headers for musl
Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46138 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | rules.mk | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -144,7 +144,11 @@ ifndef DUMP export GCC_HONOUR_COPTS:=0 TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-) TARGET_CFLAGS+= -fhonour-copts $(if $(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_5),,-Wno-error=unused-but-set-variable) - TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include/fortify -I$(TOOLCHAIN_DIR)/include + TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include + ifeq ($(CONFIG_USE_MUSL),y) + TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/include/fortify + endif + TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/include TARGET_LDFLAGS+= -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH) else |