From 09ebc071be65aa76a21edada7988c80d35c536cc Mon Sep 17 00:00:00 2001 From: vchaves123 <62041525+vchaves123@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:02:08 -0300 Subject: [PATCH] Add support for Large Memory Model on AIX 32-bit --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index abc84fc22..9a7086464 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,7 @@ AC_SUBST([LN_EXEEXT]) echo echo "Configure options:" AM_CFLAGS= +AM_LDFLAGS= ############# @@ -868,6 +869,13 @@ AC_CHECK_MEMBERS([ AC_SYS_LARGEFILE AC_C_BIGENDIAN +case $host_os in + aix*) + if test "x$gl_cv_host_cpu_c_abi_32bit" = xyes ; then + AM_LDFLAGS="$AM_LDFLAGS -Wl,-bmaxdata:0x80000000" + fi +esac + # __attribute__((__constructor__)) can be used for one-time initializations. # Use -Werror because some compilers accept unknown attributes and just # give a warning. @@ -1323,6 +1331,7 @@ AM_CONDITIONAL([COND_GNULIB], test -n "$LIBOBJS") # Add default AM_CFLAGS. AC_SUBST([AM_CFLAGS]) +AC_SUBST([AM_LDFLAGS]) # This is needed for src/scripts. xz=`echo xz | sed "$program_transform_name"`