File 0181-fix-linker-flags-for-AIX.patch of Package erlang

From d2ceabf2458688077a3eb97f4aaddfce4a04e5bf Mon Sep 17 00:00:00 2001
From: Calvin Buckley <calvin@cmpct.info>
Date: Fri, 25 Jan 2019 07:51:21 -0500
Subject: [PATCH 01/12] fix linker flags for AIX

Modern AIX also wants these; matches Bull SPRM for OTP R15
---
 erts/aclocal.m4   | 2 +-
 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;],
-- 
2.16.4

openSUSE Build Service is sponsored by