Use or1k-darwin host SHARED_LIBADD for *-darwin.
authorMichael Roitzsch <reactorcontrol@icloud.com>
Wed, 20 Feb 2019 04:17:40 +0000 (14:47 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 20 Feb 2019 04:19:07 +0000 (14:49 +1030)
* configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
Darwin hosts, not just or1k.
* configure: Regenerate.

bfd/ChangeLog
bfd/configure
bfd/configure.ac

index e39bb1264cb9e550bea1620d1114094905f07c6c..bb73a972759da5b53019f4d1423b4afa9737c836 100644 (file)
@@ -1,3 +1,9 @@
+2019-02-20  Michael Roitzsch  <reactorcontrol@icloud.com>
+
+       * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
+       Darwin hosts, not just or1k.
+       * configure: Regenerate.
+
 2019-02-20  Alan Modra  <amodra@gmail.com>
 
        PR 24236
index 66901c018fc11f77d3bb8dcb19de870ad48563a2..8d6c94aef2e619743e8270e1e6d3277b55672809 100755 (executable)
@@ -14528,15 +14528,15 @@ if test "$enable_shared" = "yes"; then
     SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
   fi
 
-# More hacks to build DLLs on Windows.
   case "${host}" in
+  # More hacks to build DLLs on Windows.
   *-*-cygwin*)
     SHARED_LDFLAGS="-no-undefined"
     SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
   ;;
 
-  # Hack to build or1k-src on OSX
-  or1k*-*-darwin*)
+  # Use built-in libintl on macOS, since it is not provided by libc.
+  *-*-darwin*)
     SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
   ;;
   esac
index eda38ea086b70b1c2c24d02f75e6a2558a2cbbf1..5f02c41520eb1e542e8da418924795227ae3148a 100644 (file)
@@ -296,15 +296,15 @@ changequote([,])dnl
     SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
   fi
 
-# More hacks to build DLLs on Windows.
   case "${host}" in
+  # More hacks to build DLLs on Windows.
   *-*-cygwin*)
     SHARED_LDFLAGS="-no-undefined"
     SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
   ;;
 
-  # Hack to build or1k-src on OSX
-  or1k*-*-darwin*)
+  # Use built-in libintl on macOS, since it is not provided by libc.
+  *-*-darwin*)
     SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
   ;;
   esac