This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/65351] [5 Regression] libiberty's pic version contains non-pic code on m32 darwin; causes bootstrap fail building libcc1.


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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Does the following patch:

--- config/picflag.m4    2013-11-18 09:59:08.420212365 +0100
+++ config/picflag.m4    2015-03-31 18:36:21.989401000 +0200
@@ -9,7 +9,9 @@ case "${$2}" in
     *-*-darwin*)
     # PIC is the default on this platform
     # Common symbols not allowed in MH_DYLIB files
-    $1=-fno-common
+    # Cancel any earlier -mdynamic-no-pic, as that makes
+    # the code not suitable for shared libraries.
+    $1=-fno-common -mno-dynamic-no-pic
     ;;
     alpha*-dec-osf5*)
     # PIC is the default.

fix the libcc1 issue?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]