From 2fa40e353814bb299dd673df04378f9f9d4a8372 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 18 Jun 2016 14:21:08 +0200 Subject: remove -fPIC from static builds --- toolchain/gcc/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'toolchain/gcc/Makefile') diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 568423032..51c12d0fd 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -77,7 +77,7 @@ ifeq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS)$(ADK_TARGET_BINFMT_ GCC_FINAL_CONFOPTS+= --disable-shared else # uClibc/glibc uses libgcc_s.so.1 for pthread_cancel with dlopen -GCC_FINAL_CONFOPTS+= --enable-shared='libstdc++,libgcc' +GCC_FINAL_CONFOPTS+= --enable-shared='libstdc++,libgcc' --enable-cxx-flags='-fPIC' endif ifeq ($(ADK_TOOLCHAIN_WITH_SSP),y) @@ -293,7 +293,6 @@ $(WRKBUILD)/.compiled: $(WRKBUILD)/configure \ ${GCC_CONFOPTS} \ ${GCC_FINAL_CONFOPTS} \ - --enable-cxx-flags='-fPIC' \ --enable-languages=$(LANGUAGES) \ --with-build-sysroot='$${prefix}/${STAGING_HOST2TARGET}' \ --with-sysroot='$${prefix}/${STAGING_HOST2TARGET}' -- cgit v1.2.3