summaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
Diffstat (limited to 'japanese')
-rw-r--r--japanese/ptex-base/files/patch-ac13
-rw-r--r--japanese/ptex-common/files/patch-ac13
2 files changed, 24 insertions, 2 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]*$//'`
diff --git a/japanese/ptex-common/files/patch-ac b/japanese/ptex-common/files/patch-ac
index 6618f4c..283ae2e 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]*$//'`
OpenPOWER on IntegriCloud