[OpenWrt-Devel] [PATCH] binutils: enable plugin support
Matthias Schiffer
mschiffer at universe-factory.net
Tue Dec 23 16:25:58 EST 2014
--enable-plugin is necessary for gcc-ar, gcc-nm and gcc-ranlib to work, which
must be used with GCC 4.9 for LTO to work.
Without this option, gcc-ar etc. will just fail with
sorry - this program has been built without plugin support
Using the normal ar from binutils with GCC 4.9 and -flto will cause linking
with static "convenience" libraries to fail.
Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
toolchain/binutils/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index 820b5f8..8e661b9 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -41,6 +41,7 @@ BINUTILS_CONFIGURE:= \
--host=$(GNU_HOST_NAME) \
--target=$(REAL_GNU_TARGET_NAME) \
--with-sysroot=$(TOOLCHAIN_DIR) \
+ --enable-plugins \
--disable-multilib \
--disable-werror \
--disable-nls \
--
2.2.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list