From 0b1504f1618a81513c8913a55f5433e07148b292 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Fri, 4 Sep 2020 22:33:17 +0200 Subject: [PATCH] bpo-41721: Add xlc options (GH-22096) (cherry picked from commit 84a7917b4c9afec07575065cffa143b91fe98c14) Co-authored-by: Stefan Krah --- configure | 5 ++++- configure.ac | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 4d9c54f2d687ba..9e6fd4658333b4 100755 --- a/configure +++ b/configure @@ -7588,11 +7588,14 @@ $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } ;; esac -# ICC needs -fp-model strict or floats behave badly case "$CC" in *icc*) + # ICC needs -fp-model strict or floats behave badly CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" ;; +*xlc*) + CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" + ;; esac if test "$assertions" = 'true'; then diff --git a/configure.ac b/configure.ac index 1bcd41e4846154..d60f05251ab727 100644 --- a/configure.ac +++ b/configure.ac @@ -1993,11 +1993,14 @@ yes) ;; esac -# ICC needs -fp-model strict or floats behave badly case "$CC" in *icc*) + # ICC needs -fp-model strict or floats behave badly CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" ;; +*xlc*) + CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" + ;; esac if test "$assertions" = 'true'; then