diff options
author | Calvin Buckley <[email protected]> | 2019-01-25 07:51:21 -0500 |
---|---|---|
committer | Calvin <[email protected]> | 2019-05-29 06:21:40 -0400 |
commit | d2ceabf2458688077a3eb97f4aaddfce4a04e5bf (patch) | |
tree | cd7aa31aea951c79fafb8dcfe6203f8742c7aa27 | |
parent | 00f497b18202d4b1b97fbdd0dcf211a6066227a9 (diff) | |
download | otp-d2ceabf2458688077a3eb97f4aaddfce4a04e5bf.tar.gz otp-d2ceabf2458688077a3eb97f4aaddfce4a04e5bf.tar.bz2 otp-d2ceabf2458688077a3eb97f4aaddfce4a04e5bf.zip |
fix linker flags for AIX
Modern AIX also wants these; matches Bull SPRM for OTP R15
-rw-r--r-- | erts/aclocal.m4 | 2 | ||||
-rw-r--r-- | erts/configure.in | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/erts/aclocal.m4 b/erts/aclocal.m4 index 0ca2755802..e2b7e1eada 100644 --- a/erts/aclocal.m4 +++ b/erts/aclocal.m4 @@ -2988,7 +2988,7 @@ case $host_os in DED_LDFLAGS="-64 $DED_LDFLAGS" fi ;; - aix4*) + aix*|os400*) DED_LDFLAGS="-G -bnoentry -bexpall" ;; freebsd2*) diff --git a/erts/configure.in b/erts/configure.in index 3a043c940d..78baba6a63 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -966,7 +966,7 @@ AC_SUBST(ERLANG_OSTYPE) AC_MSG_CHECKING(for extra flags needed to export symbols) DEXPORT="" case $host_os in - aix4*) + aix*|os400*) DEXPORT=-Wl,-bexpall,-brtl ;; bsdi*) @@ -1427,7 +1427,7 @@ if test "$have_gethostbyname_r" = yes; then AC_DEFINE(HAVE_GETHOSTBYNAME_R, GHBN_R_SOLARIS, [Define to flavour of gethostbyname_r]) ;; - aix4*) + aix*|os400*) # AIX version also needs "struct hostent_data" defn AC_TRY_COMPILE([#include <netdb.h>], [struct hostent_data hd;], |