X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fnext_3.sh;h=d667ca28685b6e9283703916998dadb8c9e8ba3b;hb=57560dc7335aaed00185c3cccea22fe709754f18;hp=38ad0ec7cc934bbff929c8c7ef0d59f9b9af08be;hpb=760ac839baf413929cd31cc32ffd6dba6b781a81;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/next_3.sh b/hints/next_3.sh index 38ad0ec..d667ca2 100644 --- a/hints/next_3.sh +++ b/hints/next_3.sh @@ -7,7 +7,6 @@ # ccflags='-DUSE_NEXT_CTYPE -DUSE_PERL_SBRK -DHIDEMYMALLOC' -POSIX_cflags='ccflags="-posix $ccflags"' ldflags='-u libsys_s' libswanted='dbm gdbm db' @@ -20,7 +19,12 @@ cccdlflags=' ' # Change the line below if you do not want to build 'quad-fat' # binaries # -mab='-arch m68k -arch i386 -arch hppa -arch sparc' +archs=`/bin/lipo -info /usr/lib/libm.a | sed 's/^[^:]*:[^:]*: //'` +for d in $archs +do + mab="$mab -arch $d" +done + archname='next-fat' ld='cc' @@ -59,7 +63,11 @@ d_strcoll='undef' usemymalloc='y' d_uname='define' -d_setpgid='define' +# setpgid() is in the posix library, but we don't use -posix, so +# we don't see it. ext/POSIX/POSIX.xs *does* use -posix, so +# setpgid is still available as POSIX::setpgid. +# See ext/POSIX/POSIX/hints/next.pl. +d_setpgid='undef' d_setsid='define' d_tcgetpgrp='define' d_tcsetpgrp='define' @@ -74,4 +82,7 @@ ranlib='sleep 5; /bin/ranlib' # # There where reports that the compiler on HPPA machines # fails with the -O flag on pp.c. -pp_cflags='optimize="-g"' +# Compiling pp.c with -O for HPPA machines results in a broken perl. +# This is true whether we're on an HPPA machine or cross-compiling +# for one. +pp_cflags='optimize=""'