Add -brtl to the AIX linker flags
authorVolker Lendecke <vl@samba.org>
Thu, 12 Jun 2008 10:35:28 +0000 (12:35 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 12 Jun 2008 11:17:37 +0000 (13:17 +0200)
Thanks to William Jojo
(cherry picked from commit 74b195b54416d9e3eb46079a71eed31a15c7293a)
(This used to be commit 5ffad12d68288eca4756519ec7ab90995a277517)

source3/configure.in

index 8c00d39d73a7fd25829c017339ae3e9375747432..358d9da7b7b77350af46e9841c834ace14fb2cd6 100644 (file)
@@ -1618,7 +1618,9 @@ DSO_EXPORTS=""
                        ;;
                *aix*) AC_DEFINE(AIX,1,[Whether the host os is aix])
                        BLDSHARED="true"
-                       LDSHFLAGS="-Wl,-G,-bexpfull,-bbigtoc"
+                       # use expfull to export underscored symbols
+                       # add rtl to remove /lib/crt0.o warning
+                       LDSHFLAGS="-Wl,-G,-bexpfull,-bbigtoc,-brtl"
                        DYNEXP="-Wl,-brtl,-bexpfull,-bbigtoc"
                        PICFLAG="-O2"
                        # as AIX code is always position independent...