2004-07-19 Robert Millan Synced from gcc: 2004-04-26 Robert Millan Add patches from libtool CVS. * libtool.m4: Add kfreebsd*-gnu and knetbsd*-gnu. * ltconfig: Likewise. * ltcf-c.sh: Likewise. * ltcf-cxx.sh: Likewise. * ltcf-gcj.sh: Likewise. diff -ur src.old/libtool.m4 src/libtool.m4 --- src.old/libtool.m4 2003-04-11 05:58:39.000000000 +0200 +++ src/libtool.m4 2004-07-20 01:56:05.000000000 +0200 @@ -577,7 +577,7 @@ esac ;; -freebsd* ) +freebsd* | kfreebsd*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) @@ -645,7 +645,7 @@ lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ;; -netbsd*) +netbsd* | knetbsd*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'] else diff -ur src.old/ltcf-c.sh src/ltcf-c.sh --- src.old/ltcf-c.sh 2002-12-01 13:01:26.000000000 +0100 +++ src/ltcf-c.sh 2004-07-20 01:56:05.000000000 +0200 @@ -185,7 +185,7 @@ whole_archive_flag_spec='-all_load $convenience' ;; - netbsd*) + netbsd* | knetbsd*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= @@ -409,7 +409,7 @@ ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd*) + freebsd* | kfreebsd*-gnu) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -456,7 +456,7 @@ link_all_deplibs=yes ;; - netbsd*) + netbsd* | knetbsd*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else diff -ur src.old/ltcf-cxx.sh src/ltcf-cxx.sh --- src.old/ltcf-cxx.sh 2003-02-20 02:12:28.000000000 +0100 +++ src/ltcf-cxx.sh 2004-07-20 01:56:05.000000000 +0200 @@ -244,7 +244,7 @@ # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs=no ;; - freebsd*) + freebsd* | kfreebsd*-gnu) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs=yes @@ -404,7 +404,7 @@ ;; esac ;; - netbsd*) + netbsd* | knetbsd*-gnu) # NetBSD uses g++ - do we need to do anything? ;; osf3*) @@ -759,7 +759,7 @@ ;; esac ;; - freebsd*) + freebsd* | kfreebsd*-gnu) # FreeBSD uses GNU C++ ;; gnu*) diff -ur src.old/ltcf-gcj.sh src/ltcf-gcj.sh --- src.old/ltcf-gcj.sh 2003-02-20 00:51:28.000000000 +0100 +++ src/ltcf-gcj.sh 2004-07-20 01:56:05.000000000 +0200 @@ -178,7 +178,7 @@ $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' ;; - netbsd*) + netbsd* | knetbsd*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= @@ -402,7 +402,7 @@ ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd*) + freebsd* | kfreebsd*-gnu) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -433,7 +433,7 @@ link_all_deplibs=yes ;; - netbsd*) + netbsd* | knetbsd*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else diff -ur src.old/ltconfig src/ltconfig --- src.old/ltconfig 2003-10-04 06:54:47.000000000 +0200 +++ src/ltconfig 2004-07-20 01:56:05.000000000 +0200 @@ -1164,6 +1164,17 @@ hardcode_into_libs=yes ;; +kfreebsd*-gnu | knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions.