[Bug target/65351] [5 Regression] libiberty's pic version contains non-pic code on m32 darwin; causes bootstrap fail building libcc1.
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 31 17:14:00 GMT 2015
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?
More information about the Gcc-bugs
mailing list