Still wasn't working exactly write on FreeBSD3. Need to

check for $OBJFORMAT and if not available set to output of
/usr/bin/objformat (if available).   Otherwise assume not elf.
This commit is contained in:
Kurt Zeilenga 1998-12-21 23:08:06 +00:00
parent 2ffb9ae30d
commit 77cb308d5a
2 changed files with 12 additions and 4 deletions

View file

@ -1134,7 +1134,8 @@ freebsd3*)
version_type=freebsd
library_names_spec='${libname}${release}.so.$versuffix $libname.so'
if [ -x `/usr/bin/objformat` ]; then
finish_cmds='PATH="$PATH:/sbin" OBJFORMAT=`objformat` ldconfig -m $libdir'
OBJFORMAT=`/usr/bin/objformat`
finish_cmds='PATH="$PATH:/sbin" OBJFORMAT="$OBJFORMAT" ldconfig -m $libdir'
else
finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
fi

View file

@ -970,10 +970,17 @@ if test -z "$show_help"; then
freebsd)
version_vars="$version_vars major versuffix"
major="$current"
if [ $PORTOBJFORMAT = elf ]; then
versuffix="$current";
if [ X"$OBJFORMAT" = X ]; then
if [ -x /usr/bin/objformat ]; then
OBJECTFORMAT=`objformat`
fi
fi
if [ "$OBJFORMAT" = elf ]; then
versuffix="$current";
else
versuffix="$current.$revision";
versuffix="$current.$revision";
fi
;;