[Bug libstdc++/58638] libstdc++ builds as non-PIC when --with-pic is specified

neotheuser at ymail dot com gcc-bugzilla@gcc.gnu.org
Sun Nov 20 17:31:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58638

Alec Ari <neotheuser at ymail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neotheuser at ymail dot com

--- Comment #11 from Alec Ari <neotheuser at ymail dot com> ---
This fix worked for me:

--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -121,8 +121,8 @@ if test "$enable_shared" = yes; then
   glibcxx_compiler_shared_flag="-D_GLIBCXX_SHARED"

 else
-  glibcxx_lt_pic_flag=
-  glibcxx_compiler_pic_flag=
+  glibcxx_lt_pic_flag="-prefer-pic"
+  glibcxx_compiler_pic_flag="$lt_prog_compiler_pic_CXX"
   glibcxx_compiler_shared_flag=
 fi

(no elif / no else if)

Thanks guys, finally having GCC compiled!


More information about the Gcc-bugs mailing list