[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Improved NetBSD support
From: |
Nick Hudson |
Subject: |
[PATCH] Improved NetBSD support |
Date: |
Fri, 20 Apr 2001 12:33:06 +0100 |
Attached is a patch that bring head up to date with the NetBSD pkgsrc
libtool.
Nick
--
aka address@hidden, address@hidden
? libtool-head.diffs
Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.899
diff -c -r1.899 ChangeLog
*** ChangeLog 2001/04/19 01:13:13 1.899
--- ChangeLog 2001/04/20 11:30:18
***************
*** 1,3 ****
--- 1,8 ----
+ 2001-04-20 Nick Hudson <address@hidden>
+
+ * libtool.m4: Improve NetBSD support
+ * ltmain.in: ditto
+
2001-04-19 Dan McNichol <address@hidden>
* libtool.m4: Build standard shared libraries on AIX POWER
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.159
diff -c -r1.159 libtool.m4
*** libtool.m4 2001/04/19 01:13:13 1.159
--- libtool.m4 2001/04/20 11:30:34
***************
*** 1320,1327 ****
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'
fi
;;
--- 1320,1327 ----
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
else
! 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
;;
***************
*** 2045,2050 ****
--- 2045,2052 ----
netbsd*)
version_type=sunos
+ need_lib_prefix=no
+ need_version=no
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
library_names_spec='${libname}${release}.so$versuffix
${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.254
diff -c -r1.254 ltmain.in
*** ltmain.in 2001/04/08 09:51:22 1.254
--- ltmain.in 2001/04/20 11:30:52
***************
*** 1032,1037 ****
--- 1032,1040 ----
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
- [PATCH] Improved NetBSD support,
Nick Hudson <=