aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/configure')
-rwxr-xr-xlibiberty/configure4
1 files changed, 3 insertions, 1 deletions
diff --git a/libiberty/configure b/libiberty/configure
index 2007ecc76b1..eaed56e3e1b 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -4887,7 +4887,9 @@ case "${host}" in
*-*-darwin*)
# PIC is the default on this platform
# Common symbols not allowed in MH_DYLIB files
- PICFLAG=-fno-common
+ # Cancel any earlier -mdynamic-no-pic, as that makes
+ # the code not suitable for shared libraries.
+ PICFLAG='-fno-common -mno-dynamic-no-pic'
;;
alpha*-dec-osf5*)
# PIC is the default.