diff options
author | Robert Nordier <rnordier@FreeBSD.org> | 1998-06-11 15:24:05 +0000 |
---|---|---|
committer | Robert Nordier <rnordier@FreeBSD.org> | 1998-06-11 15:24:05 +0000 |
commit | 83938e50744512e73f72ffb9b1451bdc2b67f71e (patch) | |
tree | c100d0feb8a1fda70fe612313e01d49ea650fa1a /lang/TenDRA | |
parent | b08f5de97061b25e307fb9fded5a04d949f20a90 (diff) | |
download | ports-83938e50744512e73f72ffb9b1451bdc2b67f71e.tar.gz ports-83938e50744512e73f72ffb9b1451bdc2b67f71e.zip |
Notes
Diffstat (limited to 'lang/TenDRA')
-rw-r--r-- | lang/TenDRA/scripts/configure | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/TenDRA/scripts/configure b/lang/TenDRA/scripts/configure new file mode 100644 index 000000000000..fec628250c2f --- /dev/null +++ b/lang/TenDRA/scripts/configure @@ -0,0 +1,27 @@ +#!/bin/sh +# Look for *crt0.o in /usr/lib or /usr/lib/aout + +olib=/usr/lib +nlib=/usr/lib/aout +dir=$WRKSRC/src/lib/env/freebsd/common/80x86 + +fixlib() +{ + crt=$1 + shift + if [ ! -f $olib/$crt ]; then + if [ ! -f $nlib/$crt ]; then + echo "Can't find $crt" >&2 + exit 1 + else + for i in "$@" + do + sed "s:$olib/$crt:$nlib/$crt:" $dir/$i >$dir/$i.tmp && + mv -f $dir/$i.tmp $dir/$i || exit 1 + done + fi + fi +} + +fixlib crt0.o default.extra tcc_diag +fixlib gcrt0.o tcc_prof |