1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Look for crt0.o in /usr/lib or /usr/lib/aout.

Prompted by: Brian Cully <shmit@erols.com>.
This commit is contained in:
Robert Nordier 1998-06-11 15:24:05 +00:00
parent b08f5de970
commit 83938e5074
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11395

27
lang/TenDRA/scripts/configure vendored Normal file
View File

@ -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