merge from gcc
[binutils-gdb.git] / libiberty / configure
index e601ccd99f48869a156d1835a8bf5ab3cab1417d..b71141a98b05bd388dfd08301391dda06b9da38e 100755 (executable)
@@ -4963,6 +4963,12 @@ case "${enable_shared}" in
   "") shared=no ;;
   *) shared=yes ;;
 esac
+
+# ...unless --enable-host-shared was passed from top-level config:
+if [ "${enable_host_shared}" = "yes" ]; then
+  shared=yes
+fi
+
 if [ "${shared}" != "yes" ]; then
   PICFLAG=
 fi