mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
--- ltconfig.orig Tue Dec 15 01:22:13 1998
|
|
+++ ltconfig Tue Feb 2 02:40:07 1999
|
|
@@ -767,7 +767,7 @@
|
|
;;
|
|
|
|
# FreeBSD 3, at last, uses gcc -shared to do shared libraries.
|
|
- freebsd3*)
|
|
+ freebsd*)
|
|
archive_cmds='$CC -shared -o $lib$libobjs'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
@@ -1105,10 +1105,21 @@
|
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "$lib" | sed '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
|
|
;;
|
|
|
|
-freebsd2* | freebsd3*)
|
|
+freebsd2*)
|
|
version_type=sunos
|
|
library_names_spec='$libname.so.$versuffix $libname.so'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
+ shlibpath_var=LD_LIBRARY_PATH
|
|
+ ;;
|
|
+
|
|
+freebsd*)
|
|
+ version_type=freebsd
|
|
+ library_names_spec='$libname.so.$versuffix $libname.so'
|
|
+ if [ $PORTOBJFORMAT = elf ]; then
|
|
+ finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="$PORTOBJFORMAT" ldconfig -m $libdir'
|
|
+ else
|
|
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
+ fi
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
;;
|
|
|