diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-18 14:21:08 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-18 14:21:33 +0200 |
commit | 2fa40e353814bb299dd673df04378f9f9d4a8372 (patch) | |
tree | 0ed12fb05a2e004002e1ff053b7a9bb02e4c5179 /toolchain | |
parent | e005e517d68a5b266c2f77db18b8dceb9264224a (diff) |
remove -fPIC from static builds
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/gcc/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
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}' |