From 3e42fec45738d96579c65d56ef7c047fd1eaceb7 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 26 Jan 2022 15:27:08 +1300 Subject: [PATCH] Use CFLAGS for testcases on AIX On AIX, one can compile applications either in 32bit or 64bit. With GCC, this is done by using: -maix64 or -maix32 (default). Thus, when building & testing Swig in 64bit, the -maix64 option must be passed to all calls to gcc. Fixes #1923 --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 3353487a1..5a9cea5ef 100644 --- a/configure.ac +++ b/configure.ac @@ -289,6 +289,7 @@ case $host in else PLATCFLAGS= # else PLATCFLAGS="-errtags=yes" # Need more work as C examples use ld for linking fi;; + *-*-aix*) PLATCFLAGS="$CFLAGS";; *) PLATCFLAGS= esac AC_MSG_RESULT($PLATCFLAGS)