4 if test "x$LTSTATIC" = xno; then
5 disable_static="--disable-static"
7 - $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh
8 + $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh $CHOST
11 # Select memory manager depending on user input.
15 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
19 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
23 # On HP-UX, both CC and GCC only warn that PIC is supported... then they
24 # create non-PIC objects. So, if there were any warnings, we assume that
25 # PIC is not supported.
26 + # Make sure we only test warnings on HP-UX (pic_flag == +Z) or we can
27 + # easily break Linux builds http://bugs.gentoo.org/70947
28 - if test -s conftest.err; then
29 + if test -s conftest.err -a "$pic_flag" = "+Z"; then
35 # Only the GNU ld.so supports shared libraries on MkLinux.
37 - powerpc*) dynamic_linker=no ;;
38 *) dynamic_linker='Linux ld.so' ;;
41 @@ -1259,6 +1260,25 @@
49 + library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
50 + soname_spec='${libname}${release}.so.$major'
51 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
52 + shlibpath_var=LD_LIBRARY_PATH
53 + shlibpath_overrides_runpath=no
54 + deplibs_check_method=pass_all
55 + # This implies no fast_install, which is unacceptable.
56 + # Some rework will be needed to allow for fast_install
57 + # before this can be enabled.
58 + # Note: copied from linux-gnu, and may not be appropriate.
59 + hardcode_into_libs=yes
60 + # Assume using the uClibc dynamic linker.
61 + dynamic_linker="uClibc ld.so"
66 library_names_spec='${libname}${release}.so.$versuffix'