summaryrefslogtreecommitdiff
path: root/hints/next_4.sh
diff options
context:
space:
mode:
authorGerben Wierda <G.C.Th.Wierda@AWT.nl>1998-09-20 03:03:18 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-09-23 10:56:24 +0000
commit38d592acc8cc6c79ec9758c8a21a6032333dec96 (patch)
tree832c5f56e279be5c68efcce3d9df3f3141435d27 /hints/next_4.sh
parentd8bfb8bddf933a815b590823bd52295534e6ded0 (diff)
downloadperl-38d592acc8cc6c79ec9758c8a21a6032333dec96.tar.gz
update hints for OPENSTEP 4.2 on i386
Message-Id: <9809192303.AA29190@Spike> Subject: Perl 5.005_02 compilation problems p4raw-id: //depot/perl@1856
Diffstat (limited to 'hints/next_4.sh')
-rw-r--r--hints/next_4.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/hints/next_4.sh b/hints/next_4.sh
index b3887e612b..d1d0398dd9 100644
--- a/hints/next_4.sh
+++ b/hints/next_4.sh
@@ -12,7 +12,7 @@
#
useposix='undef'
-libpth='/lib /usr/lib'
+libpth='/lib /usr/lib /usr/local/lib'
libswanted=' '
libc='/NextLibrary/Frameworks/System.framework/System'
@@ -35,7 +35,20 @@ ld='cc'
#
# archs='m68k i386'
#
-archs=`/bin/lipo -info /usr/lib/libm.a | sed -n 's/^[^:]*:[^:]*: //p'`
+
+# On m68k machines, toke.c cannot be compiled at all for i386 and it can
+# only be compiled for m68k itself without optimization (this is under
+# OPENSTEP 4.2).
+#
+if [ `hostinfo | grep 'NeXT Mach.*:' | sed 's/.*RELEASE_//'` = M68K ]
+then
+ echo "Cross compilation is impossible on m68k hardware under OS 4"
+ echo "Forcing architecture to m68k only"
+ toke_cflags='optimize=""'
+ archs='m68k'
+else
+ archs=`/bin/lipo -info /usr/lib/libm.a | sed -n 's/^[^:]*:[^:]*: //p'`
+fi
#
# leave the following part alone