From: Jarkko Hietaniemi Date: Mon, 2 Aug 1999 14:52:40 +0000 (+0000) Subject: AIX long long probing requires LL suffix for X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6e58d65cdee942efacbebb436841cff48d4c4061;p=p5sagit%2Fp5-mst-13.2.git AIX long long probing requires LL suffix for the ll constant. The suffix doesn't seem to bother other ll platforms. p4raw-id: //depot/cfgperl@3891 --- diff --git a/Configure b/Configure index 1e17dd4..bd158a4 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Mon Aug 2 15:32:21 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Mon Aug 2 17:42:55 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ < #include int main() { - long long q = 12345678901; + long long q = 12345678901LL; /* AIX cc requires the LL prefix. */ printf("%lld\n", q); } EOCP diff --git a/hints/aix.sh b/hints/aix.sh index 22a02d2..0f9553a 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -185,6 +185,10 @@ EOM esac ccflags="$ccflags `getconf XBS5_LPBIG_OFFBIG_CFLAGS 2>/dev/null`" ccflags="$ccflags -DUSE_LONG_LONG" + case "$cc" in + *c89) ccflags="$ccflags -qlonglong" ;; + # Plus AIX also requires LL prefixes for all long long constants. + esac ldflags="$ldflags `getconf XBS5_LPBIG_OFFBIG_LDFLAGS 2>/dev/null`" # _Somehow_ in AIX 4.3.1.0 the above getconf call manages to