summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_aix_g++.GNU
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-08-28 08:44:30 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-08-28 08:44:30 +0000
commit4564129d28b08e5f5619d0a6357664263ff23931 (patch)
tree35a64eeec6f1725ce14fe1592bac29690c462e58 /ACE/include/makeinclude/platform_aix_g++.GNU
parentda63ad21b7ac43c136aa96928c712c6532cb26ce (diff)
downloadATCD-4564129d28b08e5f5619d0a6357664263ff23931.tar.gz
Tue Aug 28 08:43:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/include/makeinclude/platform_aix_g++.GNU')
-rw-r--r--ACE/include/makeinclude/platform_aix_g++.GNU19
1 files changed, 12 insertions, 7 deletions
diff --git a/ACE/include/makeinclude/platform_aix_g++.GNU b/ACE/include/makeinclude/platform_aix_g++.GNU
index 72af5a7ba58..8f72ddf7d0e 100644
--- a/ACE/include/makeinclude/platform_aix_g++.GNU
+++ b/ACE/include/makeinclude/platform_aix_g++.GNU
@@ -27,15 +27,20 @@ PLATFORM_X11_LDFLAGS=
# The way to make a shared lib on AIX is to make a shared object file and
# then put that in an archive.
# Non-shared archives are named lib<x>ns.a - ns = non-shared.
-SOEXT = a
-# aix_build turns on the funky shared library building code in
-# rules.lib.GNU
-aix_build = 1
+SOEXT = so
+SOFLAGS += -G
+LDFLAGS += -brtl
ifeq (1,$(threads))
CFLAGS += -pthread
endif
+ifeq ($(shared_libs),1)
+ACELIB = -lACE
+else
+ACELIB = -lACEns
+endif
+
# In case anything here or in the config depends on OS version number,
# grab it here and pass it all to the compiler as well.
AIX_MAJOR_VERS := $(shell uname -v)
@@ -64,16 +69,16 @@ endif
OCFLAGS = -O2
OCCFLAGS = $(OCFLAGS)
ifeq ($(threads),1)
-SOFLAGS += -pthread
+ SOFLAGS += -pthread
endif
# AIX 5 has a new ld option, -bexpfull, that exports all the symbols that
# g++ 3.3+ needs to work correctly. The new option is available by default
# in AIX 5.2 and later, but must be installed by a patch to AIX 5.1.
ifeq ($(AIX_MAJOR_VERS),5)
-SOFLAGS += -shared -Wl,-bexpfull # -Wl,-bloadmap:lib.map
+ SOFLAGS += -shared -Wl,-G #-Wl,bexpfull -Wl,-bloadmap:lib.map
else
-SOFLAGS += -shared -Wl,-bexpall # -Wl,-bloadmap:lib.map
+ SOFLAGS += -shared -Wl,-bexpall # -Wl,-bloadmap:lib.map
endif
LIBS += -lxti -ldl