This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/65351] [5 Regression] libiberty's pic version contains non-pic code on m32 darwin; causes bootstrap fail building libcc1.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Mar 2015 16:37:23 +0000
- Subject: [Bug target/65351] [5 Regression] libiberty's pic version contains non-pic code on m32 darwin; causes bootstrap fail building libcc1.
- Auto-submitted: auto-generated
- References: <bug-65351-4 at http dot gcc dot gnu dot org/bugzilla/>
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?