X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=lto-plugin%2Fconfigure;h=c9c84a10511161912acad97838baa7e7f78a33f2;hp=8b94622b3ff453d1f77aafaf219f3ba49c0a1c2b;hb=4b20b68c523a41c9101fd67fa2486900c2c48809;hpb=13ac7a0f8ccbc9b5c1edb8e23ff43d62b0ba0534 diff --git a/lto-plugin/configure b/lto-plugin/configure index 8b94622b3ff..c9c84a10511 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 @@ -8720,10 +8721,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_shlibpath_var=no ;; - freebsd1*) - ld_shlibs=no - ;; - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little @@ -9642,10 +9639,6 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) - dynamic_linker=no - ;; - freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. @@ -10505,7 +10498,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 10501 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10611,7 +10604,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 10607 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10849,24 +10842,28 @@ CC="$lt_save_CC" -# Trying to get this information from gcc's config is tricky. -case $target in - x86_64*-mingw*) -$as_echo "#define SYM_STYLE ss_none" >>confdefs.h +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= ;; - *-cygwin* | i?86*-mingw* ) +esac -$as_echo "#define SYM_STYLE ss_win32" >>confdefs.h - ;; - *) -$as_echo "#define SYM_STYLE ss_none" >>confdefs.h - ;; -esac ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" case $ac_cv_c_int64_t in #( no|yes) ;; #(