aboutsummaryrefslogtreecommitdiffstats
path: root/lang/TenDRA
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>1998-06-11 23:24:05 +0800
committerrnordier <rnordier@FreeBSD.org>1998-06-11 23:24:05 +0800
commita5fbf3657af7b74f7348a00edb1c2fffb8b7d8ed (patch)
treed6521a26cb46c9d4b0660c4b49bcb9a7c810b7d7 /lang/TenDRA
parentd366cf2990e2269ff6da0283f787d073bc0ccc11 (diff)
downloadfreebsd-ports-gnome-a5fbf3657af7b74f7348a00edb1c2fffb8b7d8ed.tar.gz
freebsd-ports-gnome-a5fbf3657af7b74f7348a00edb1c2fffb8b7d8ed.tar.zst
freebsd-ports-gnome-a5fbf3657af7b74f7348a00edb1c2fffb8b7d8ed.zip
Look for crt0.o in /usr/lib or /usr/lib/aout.
Prompted by: Brian Cully <shmit@erols.com>.
Diffstat (limited to 'lang/TenDRA')
-rw-r--r--lang/TenDRA/scripts/configure27
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