As suggested by Florian, I'm submitting a patch that removes
the honour-copts CFLAG when using an external toolchain.
With the flag I'm getting this error when trying to compile
a package (the click router):
cc1plus: error: unrecognized command line option "-fhonour-copts"
Signed-off-by: Roberto Riggio<[email protected]>
--
Index: rules.mk
===================================================================
--- rules.mk (revision 23230)
+++ rules.mk (working copy)
@@ -113,7 +113,6 @@
ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
-include $(TOOLCHAIN_DIR)/info.mk
TARGET_CROSS:=$(if
$(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if
$(TARGET_SUFFIX),-$(TARGET_SUFFIX))-)
- TARGET_CFLAGS+= -fhonour-copts
TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include
-I$(TOOLCHAIN_DIR)/include
TARGET_LDFLAGS+= -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib
TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH)
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel