summaryrefslogtreecommitdiff
path: root/libada/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libada/configure')
-rwxr-xr-xlibada/configure4
1 files changed, 3 insertions, 1 deletions
diff --git a/libada/configure b/libada/configure
index 55d63fa13744..1e169758d0b6 100755
--- a/libada/configure
+++ b/libada/configure
@@ -2826,7 +2826,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.