From: Kurt Zeilenga Date: Fri, 4 Dec 1998 02:27:58 +0000 (+0000) Subject: Update libtool for FreeBSD elf support. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~965 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1376d2a821fe9f384679e30b44b3f2f33b4d5504;p=openldap Update libtool for FreeBSD elf support. --- diff --git a/build/ltconfig b/build/ltconfig index 2347e69439..b746287cd2 100755 --- a/build/ltconfig +++ b/build/ltconfig @@ -1123,13 +1123,24 @@ amigaos*) 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 ;; +freebsd3*) + 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 + ;; + gnu*) version_type=sunos library_names_spec='${libname}${release}.so.$versuffix' diff --git a/build/ltmain.sh b/build/ltmain.sh index e9350b3fab..ffacb3dfd6 100755 --- a/build/ltmain.sh +++ b/build/ltmain.sh @@ -967,6 +967,16 @@ if test -z "$show_help"; then 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