An attempt to fix the problem reported in
authorDaniel Muiño <dmuino@afip.gov.ar>
Mon, 28 Aug 2000 15:50:01 +0000 (12:50 -0300)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Aug 2000 20:38:59 +0000 (20:38 +0000)
Subject: Building perl@6856 using gcc/AIX 4.3.3
Message-ID: <20000828155001.A14403@con2-dgi>

I can't test this properly since the gcc installation I have
access to seems to be botched (gcc is calling the AIX cpp,
a losing proposition...)

p4raw-id: //depot/perl@6864

hints/aix.sh

index 8a29b93..c6a8c52 100644 (file)
@@ -213,7 +213,7 @@ ldflags_largefiles="`getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`"
        # insert(?) *something* to $ldflags so that later (in Configure) evaluating
        # $ldflags causes a newline after the '-b64' (the result of the getconf).
        # (nothing strange shows up in $ldflags even in hexdump;
-       #  so it may be something in the shell, instead?)
+       #  so it may be something (a bug) in the shell, instead?)
        # Try it out: just uncomment the below line and rerun Configure:
 # echo >&4 "AIX 4.3.1.0 $ldflags_largefiles mystery" ; exit 1
        # Just don't ask me how AIX does it, I spent hours wondering.
@@ -229,7 +229,24 @@ libswanted_largefiles="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l
           libswanted="$libswanted $libswanted_largefiles"
           ;;
        esac
-       ;;
+       case "$gccversion" in
+       '') ;;
+       *)
+       cat >&4 <<EOM
+
+*** Warning: gcc in AIX might not work with the largefile support of Perl
+*** (default since 5.6.0), this combination hasn't been tested.
+*** I will try, though.
+
+EOM
+       # Remove xlc-spefific -qflags.
+        ccflags="`echo $ccflags | sed -e 's@ -q[^ ]*@ @g' -e 's@^-q[^ ]* @@g'`"
+        ldflags="`echo $ldflags | sed -e 's@ -q[^ ]*@ @g' -e 's@^-q[^ ]* @@g'`"
+       echo >&4 "(using ccflags $ccflags)"
+       echo >&4 "(using ldflags $ldflags)"
+        ;; 
+        esac
+        ;;
 esac
 EOCBU