From: Gerben Wierda Date: Sun, 20 Sep 1998 01:03:18 +0000 (+0200) Subject: update hints for OPENSTEP 4.2 on i386 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=38d592acc8cc6c79ec9758c8a21a6032333dec96;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/hints/next_4.sh b/hints/next_4.sh index b3887e6..d1d0398 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