diff options
author | max <max@FreeBSD.org> | 1999-08-26 03:30:28 +0800 |
---|---|---|
committer | max <max@FreeBSD.org> | 1999-08-26 03:30:28 +0800 |
commit | ac9ee93df8ee9038088d1c2da7e59beef11913c2 (patch) | |
tree | 0d9c27b95a53e2409aaf40aba0942eedf94ef967 /japanese/ptex-common | |
parent | d2b37b7e272e1129edfc907af4e432e87213aa3a (diff) | |
download | freebsd-ports-gnome-ac9ee93df8ee9038088d1c2da7e59beef11913c2.tar.gz freebsd-ports-gnome-ac9ee93df8ee9038088d1c2da7e59beef11913c2.tar.zst freebsd-ports-gnome-ac9ee93df8ee9038088d1c2da7e59beef11913c2.zip |
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-common')
-rw-r--r-- | japanese/ptex-common/files/patch-ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/japanese/ptex-common/files/patch-ac b/japanese/ptex-common/files/patch-ac index 6618f4c3a1c9..283ae2eeb39f 100644 --- a/japanese/ptex-common/files/patch-ac +++ b/japanese/ptex-common/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]*$//'` |