aboutsummaryrefslogtreecommitdiff
path: root/libada
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2015-04-10 08:43:52 +0200
committerIain Sandoe <iains@gcc.gnu.org>2015-04-10 06:43:52 +0000
commitcacf1f59069873d69005fd274184adc25da3bc90 (patch)
tree7b815277dd56cf4c4aa0686897089fe68d9e2937 /libada
parentc620a1686faf1e546d292515be12f3c94421e212 (diff)
re PR target/65351 (libiberty's pic version contains non-pic code on m32 darwin; causes bootstrap fail building libcc1.)
PR target/65351 config/ * mh-darwin: Only apply -mdynamic-no-pic for m32 Darwin when the compiler in use supports -mno-dynamic-no-pic. * picflag.m4: Only append -mno-dynamic-no-pic for Darwin when -mdynamic-no-pic is present in CFLAGS. libiberty/ * configure: Regenerate. libada/ * configure: Regenerate. libgcc/ * configure: Regenerate. gcc/ * configure: Regenerate. Co-Authored-By: Iain Sandoe <iain@codesourcery.com> From-SVN: r221967
Diffstat (limited to 'libada')
-rw-r--r--libada/ChangeLog6
-rwxr-xr-xlibada/configure14
2 files changed, 15 insertions, 5 deletions
diff --git a/libada/ChangeLog b/libada/ChangeLog
index 5f3a40aa889..5c006de6f43 100644
--- a/libada/ChangeLog
+++ b/libada/ChangeLog
@@ -1,3 +1,9 @@
+2015-04-10 Jakub Jelinek <jakub@redhat.com>
+ Iain Sandoe <iain@codesourcery.com>
+
+ PR target/65351
+ * configure: Regenerate.
+
2015-04-07 Jakub Jelinek <jakub@redhat.com>
Iain Sandoe <iain@codesourcery.com>
diff --git a/libada/configure b/libada/configure
index 1e169758d0b..2296096d4d2 100755
--- a/libada/configure
+++ b/libada/configure
@@ -2824,11 +2824,15 @@ fi
case "${host}" in
# PIC is the default on some targets or must not be used.
*-*-darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- # Cancel any earlier -mdynamic-no-pic, as that makes
- # the code not suitable for shared libraries.
- PICFLAG='-fno-common -mno-dynamic-no-pic'
+ # For darwin, common symbols are not allowed in MH_DYLIB files
+ case "${CFLAGS}" in
+ # If we are using a compiler supporting mdynamic-no-pic
+ # and the option has been tested as safe to add, then cancel
+ # it here, since the code generated is incompatible with shared
+ # libs.
+ *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
+ *) PICFLAG=-fno-common ;;
+ esac
;;
alpha*-dec-osf5*)
# PIC is the default.