blob: 67e689a2ae63690035a5e41b4f387051112876a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
--- config/ltmain.sh.orig Wed Oct 7 13:16:34 1998
+++ config/ltmain.sh Tue Feb 2 20:38:44 1999
@@ -967,6 +967,16 @@
versuffix="$current.$revision"
;;
+ freebsd)
+ version_vars="$version_vars major versuffix"
+ major="$current"
+ if [ $PORTOBJFORMAT = elf ]; then
+ versuffix="$current";
+ else
+ versuffix="$current.$revision";
+ fi
+ ;;
+
*)
$echo "$modename: unknown library version type \`$version_type'" 1>&2
echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
--- config/ltconfig.orig Wed Oct 7 13:16:34 1998
+++ config/ltconfig Tue Feb 2 20:41:55 1999
@@ -777,7 +777,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
@@ -1123,10 +1123,21 @@
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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}${release}.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}${release}.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
;;
|