summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-06-02 23:22:23 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-06-02 23:22:23 +0000
commitfd11e4e55d524b2b9ff9bbfd1b7e3f625b7de8de (patch)
tree67b5fcdab0c983f4e2cae3119f9629d43f24252c /lang
parentFix the semctl() wrapper so that it will compile on -current systems (diff)
Fix a hard coded path to libgcc which quit working when the
libraries moved into "/usr/lib/aout".
Notes
Notes: svn path=/head/; revision=11217
Diffstat (limited to 'lang')
-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 2e1002978d49..7a814e57703d 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