summaryrefslogtreecommitdiff
path: root/lto-plugin/configure
diff options
context:
space:
mode:
Diffstat (limited to 'lto-plugin/configure')
-rwxr-xr-xlto-plugin/configure27
1 files changed, 25 insertions, 2 deletions
diff --git a/lto-plugin/configure b/lto-plugin/configure
index 8b94622b3ff..12e58e5d867 100755
--- a/lto-plugin/configure
+++ b/lto-plugin/configure
@@ -602,6 +602,7 @@ am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
target_noncanonical
+lt_host_flags
CPP
OTOOL64
OTOOL
@@ -10505,7 +10506,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10508 "configure"
+#line 10509 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10611,7 +10612,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10614 "configure"
+#line 10615 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10849,6 +10850,28 @@ CC="$lt_save_CC"
+
+
+case $host in
+ *-cygwin* | *-mingw*)
+ # 'host' will be top-level target in the case of a target lib,
+ # we must compare to with_cross_host to decide if this is a native
+ # or cross-compiler and select where to install dlls appropriately.
+ if test -n "$with_cross_host" &&
+ test x"$with_cross_host" != x"no"; then
+ lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
+ else
+ lt_host_flags='-no-undefined -bindir "$(bindir)"';
+ fi
+ ;;
+ *)
+ lt_host_flags=
+ ;;
+esac
+
+
+
+
# Trying to get this information from gcc's config is tricky.
case $target in
x86_64*-mingw*)