diff options
author | max <max@FreeBSD.org> | 1999-08-25 19:30:28 +0000 |
---|---|---|
committer | max <max@FreeBSD.org> | 1999-08-25 19:30:28 +0000 |
commit | ac9ee93df8ee9038088d1c2da7e59beef11913c2 (patch) | |
tree | 0d9c27b95a53e2409aaf40aba0942eedf94ef967 /japanese/ptex-base/files | |
parent | d2b37b7e272e1129edfc907af4e432e87213aa3a (diff) | |
download | FreeBSD-ports-ac9ee93df8ee9038088d1c2da7e59beef11913c2.zip FreeBSD-ports-ac9ee93df8ee9038088d1c2da7e59beef11913c2.tar.gz |
Make ptex-* ports compile on 2.2.x.
Submitted and requested by: Mamoru Iwaki <iwaki@bc.niigata-u.ac.jp>
Diffstat (limited to 'japanese/ptex-base/files')
-rw-r--r-- | japanese/ptex-base/files/patch-ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/japanese/ptex-base/files/patch-ac b/japanese/ptex-base/files/patch-ac index 6618f4c..283ae2e 100644 --- a/japanese/ptex-base/files/patch-ac +++ b/japanese/ptex-base/files/patch-ac @@ -9,12 +9,23 @@ $verbose "$0: replaced $old_ar with $cmdname." fi -@@ -397,6 +397,9 @@ +@@ -397,6 +397,20 @@ lib_dir=. fi lib_basename=`basename $libname` + if test $ot = SHARED; then ++if [ -x /sbin/sysctl ] ++then ++ OSVERSION=`/sbin/sysctl -n kern.osreldate` ++else ++ OSVERSION=`/usr/sbin/sysctl -n kern.osreldate` ++fi ++if [ $OSVERSION -ge 300000 ] ++then + cmdname="$cmdname -Wl,-soname,$lib_basename -o" ++else ++ cmdname="$cmdname -o" ++fi + fi lib_base=`echo $lib_basename | sed 's/[.0-9]*$//'` |