diff options
author | John Polstra <jdp@FreeBSD.org> | 1998-05-29 17:58:09 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1998-05-29 17:58:09 +0000 |
commit | b72c90e53ca1c980e43c29d612f5d6e1f93462cf (patch) | |
tree | b9355b4fb421bbc86c191928f2609f6eab869eff /lang/modula-3-lib | |
parent | 3fd1eb20777a3d0a942e48de29bc9af9740c1c59 (diff) | |
download | ports-b72c90e53ca1c980e43c29d612f5d6e1f93462cf.tar.gz ports-b72c90e53ca1c980e43c29d612f5d6e1f93462cf.zip |
Notes
Diffstat (limited to 'lang/modula-3-lib')
-rw-r--r-- | lang/modula-3-lib/scripts/configure | 15 |
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 |