summaryrefslogtreecommitdiff
path: root/lang/modula-3-lib
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-05-29 17:58:09 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-05-29 17:58:09 +0000
commitb72c90e53ca1c980e43c29d612f5d6e1f93462cf (patch)
treeb9355b4fb421bbc86c191928f2609f6eab869eff /lang/modula-3-lib
parentxemacs (diff)
Fix this port to work whether crt0.o is in /usr/lib or /usr/lib/aout.
Notes
Notes: svn path=/head/; revision=11189
Diffstat (limited to 'lang/modula-3-lib')
-rw-r--r--lang/modula-3-lib/scripts/configure15
1 files changed, 13 insertions, 2 deletions
diff --git a/lang/modula-3-lib/scripts/configure b/lang/modula-3-lib/scripts/configure
index 22a4738fdfee..2e1002978d49 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.2 1996/09/10 05:25:09 jdp Exp $
+# $Id: configure,v 1.1.1.1 1996/10/29 23:01:55 jdp Exp $
umask 022
@@ -8,8 +8,19 @@ files_to_patch="\
${WRKSRC}/m3/m3build/templates/FreeBSD2"
temp_prefix=${WRKSRC}/installed
+if [ -f /usr/lib/crt0.o ]; then
+ crt=/usr/lib/crt0.o
+elif [ -f /usr/lib/aout/crt0.o ]; then
+ crt=/usr/lib/aout/crt0.o
+else
+ echo "Cannot find a \"crt0.o\" 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" ${i}.bak >${i}
+ sed -e "s|/usr/local/|${temp_prefix}/|g" \
+ -e "s|/usr/lib/crt0\.o|${crt}|g" \
+ ${i}.bak >${i}
done