aboutsummaryrefslogtreecommitdiffstats
path: root/lang/modula-3-lib/scripts
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-06-03 07:22:23 +0800
committerjdp <jdp@FreeBSD.org>1998-06-03 07:22:23 +0800
commitceef8cf76404af5599e4fe81d4f465f99f77d0a2 (patch)
treec79f45c9e558e2b4c0b9e8994ac8d65e36cc39c3 /lang/modula-3-lib/scripts
parent0895c73378e6755712fb626e175c1d099db8a2b5 (diff)
downloadfreebsd-ports-graphics-ceef8cf76404af5599e4fe81d4f465f99f77d0a2.tar.gz
freebsd-ports-graphics-ceef8cf76404af5599e4fe81d4f465f99f77d0a2.tar.zst
freebsd-ports-graphics-ceef8cf76404af5599e4fe81d4f465f99f77d0a2.zip
Fix a hard coded path to libgcc which quit working when the
libraries moved into "/usr/lib/aout".
Diffstat (limited to 'lang/modula-3-lib/scripts')
-rw-r--r--lang/modula-3-lib/scripts/configure12
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/modula-3-lib/scripts/configure b/lang/modula-3-lib/scripts/configure
index 2e1002978d4..7a814e57703 100644
--- a/lang/modula-3-lib/scripts/configure
+++ b/lang/modula-3-lib/scripts/configure
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $Id: configure,v 1.1.1.1 1996/10/29 23:01:55 jdp Exp $
+# $Id: configure,v 1.2 1998/05/29 17:58:09 jdp Exp $
umask 022
@@ -17,10 +17,20 @@ else
exit 1
fi
+if [ -f /usr/lib/libgcc.a ]; then
+ libgcc=/usr/lib/libgcc.a
+elif [ -f /usr/lib/aout/libgcc.a ]; then
+ libgcc=/usr/lib/aout/libgcc.a
+else
+ echo "Cannot find a \"libgcc.a\" file" >&2
+ exit 1
+fi
+
for i in ${files_to_patch}; do
test -f ${i}.bak || cp -p ${i} ${i}.bak
rm -f ${i}
sed -e "s|/usr/local/|${temp_prefix}/|g" \
-e "s|/usr/lib/crt0\.o|${crt}|g" \
+ -e "s|/usr/lib/libgcc\.a|${libgcc}|g" \
${i}.bak >${i}
done