mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
1353f66bf5
The trap handler returns different information after this date for numeric error conditions. Since kern.osreldate is not a reliable indicator of when this change occurred, we revert to checking for the presence of a particular #define in <machine/trap.h> to decide if the SML/NJ runtime sources need to use the newer interface. Submitted by: Tom <tcrimi@andrew.cmu.edu> (in part)
22 lines
645 B
Plaintext
22 lines
645 B
Plaintext
--- config/install.sh.orig Wed Aug 5 13:43:43 1998
|
|
+++ config/install.sh Sat Jan 29 20:46:09 2000
|
|
@@ -181,6 +181,18 @@
|
|
if [ "$?" != "0" ]; then
|
|
exit $?
|
|
fi
|
|
+# we need to patch just before build
|
|
+echo "applying source patches"
|
|
+patch_file="${FILESDIR}/patch-global-names"
|
|
+if [ -f $patch_file ]; then
|
|
+ $PATCH $PATCH_ARGS < $patch_file
|
|
+fi
|
|
+if grep -w FPE_INTDIV /usr/include/machine/trap.h > /dev/null 2>&1; then
|
|
+ patch_file="${FILESDIR}/patch-signals"
|
|
+ if [ -f $patch_file ]; then
|
|
+ $PATCH $PATCH_ARGS < $patch_file
|
|
+ fi
|
|
+fi
|
|
if [ ! -x $RUNDIR/run.$ARCH-$OPSYS ]; then
|
|
cd $SRCDIR/runtime/objs
|
|
echo "compiling the run-time system"
|