]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: Improve NetBSD support.
authorNick Hudson <skrll@netbsd.org>
Fri, 20 Apr 2001 21:01:36 +0000 (21:01 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 20 Apr 2001 21:01:36 +0000 (21:01 +0000)
* ltcf-c.sh: ditto.
* ltcf-gcj.sh: ditto.
* ltmain.in: ditto.

ChangeLog
ltcf-c.sh
ltcf-gcj.sh
ltconfig.in
ltmain.in

index 1da26a961a792cbcef70a56f1d3029a56b45e8b2..600c80f12ab313d6ce6b44ee977d28bea34934ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-04-20  Nick Hudson  <skrll@netbsd.org>
+
+       * libtool.m4: Improve NetBSD support.
+       * ltcf-c.sh: ditto.
+       * ltcf-gcj.sh: ditto.
+       * ltmain.in: ditto.
+       
 2001-04-20  Alexandre Oliva  <aoliva@redhat.com>
 
        * ltcf-cxx.sh [HP-UX GNU ld]: Don't use flags specific to the
index 17b65111c9277c98c62d1903b912f33ae3d3f24c..cef1012e8922fbb667ab4a1d6c94b71afa516064 100644 (file)
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -188,8 +188,8 @@ EOF
       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
       wlarc=
     else
-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     fi
     ;;
 
index 2fa090c1434994b47a412fcf3196d08b68c76b6f..7f31db3e3e4f9b54ca14797735216b9410f83cb4 100644 (file)
@@ -181,8 +181,8 @@ EOF
       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
       wlarc=
     else
-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     fi
     ;;
 
@@ -431,7 +431,7 @@ else
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     else
-      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+      archive_cmds='$LD -shared -nodefaultlibs -o $lib $libobjs $deplibs $linker_flags'      # ELF
     fi
     hardcode_libdir_flag_spec='${wl}-R$libdir'
     hardcode_direct=yes
index 4ca139f92d23a07fb362cc17dfe1f2230ca98e48..33d3e85c0c138770df5a34c5b38c297c3c169cef 100755 (executable)
@@ -1217,6 +1217,8 @@ linux-gnu*)
   ;;
 
 netbsd*)
+  need_lib_prefix=no
+  need_version=no
   version_type=sunos
   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
index e379224ebdd67ecbb1233aeb52d73fdaa4158ee1..7eb941e4d203883ae566671880ea1d850a142f8b 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1218,6 +1218,9 @@ EOF
            deplibs="$deplibs -framework System"
            continue
            ;;
+          *-*-netbsd*)
+            # Don't link with libc until the a.out ld.so is fixed.
+            ;;
          esac
        elif test "$arg" = "-lm"; then
          case $host in