]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libada/configure
Update configure deps, remove stray \xA0 in picflag.m4, regenerate
[thirdparty/gcc.git] / libada / configure
index 1e169758d0b63da392b5a36634b8ffa9e0c9e187..3b9f4ae3c5b8df61d611d466b154369d9032a9eb 100755 (executable)
@@ -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.
@@ -3715,7 +3719,6 @@ CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 CC="$CC"
 CXX="$CXX"
 GFORTRAN="$GFORTRAN"
-GCJ="$GCJ"
 
 _ACEOF