diff options
Diffstat (limited to 'config/picflag.m4')
-rw-r--r-- | config/picflag.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/picflag.m4 b/config/picflag.m4 index 3bcdbf1de30..836523d67c9 100644 --- a/config/picflag.m4 +++ b/config/picflag.m4 @@ -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. |