merge from gcc
[binutils-gdb.git] / libiberty / configure.ac
index fcea46f6c7bbe7ec631421ecdbf663742a20e42d..4ad88a984d7c28ddce3842f0da934b591e19a2f1 100644 (file)
@@ -225,6 +225,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