summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_aix4_g++.GNU
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1999-07-21 16:35:59 +0000
committerSteve Huston <shuston@riverace.com>1999-07-21 16:35:59 +0000
commitb5c5ca44fc49d16709ed80a0e2978c747be3458f (patch)
tree89a171ae6b463a77d1d906f9df298ea929779730 /include/makeinclude/platform_aix4_g++.GNU
parenta1130c766160728473575c3bca2600616fc0522a (diff)
downloadATCD-b5c5ca44fc49d16709ed80a0e2978c747be3458f.tar.gz
Replaced direct set of variables with check to see if user has already set them.
Add -bbigtoc for TAO_IDL w/ egcs on AIX.
Diffstat (limited to 'include/makeinclude/platform_aix4_g++.GNU')
-rw-r--r--include/makeinclude/platform_aix4_g++.GNU23
1 files changed, 19 insertions, 4 deletions
diff --git a/include/makeinclude/platform_aix4_g++.GNU b/include/makeinclude/platform_aix4_g++.GNU
index 69793ceb341..9da6ad1d96e 100644
--- a/include/makeinclude/platform_aix4_g++.GNU
+++ b/include/makeinclude/platform_aix4_g++.GNU
@@ -6,9 +6,19 @@
# Original contributed by Ian Wright <I.Wright@elsevier.co.uk>. Updated for
# AIX 4 and egcs by Steve Huston <shuston@riverace.com>.
-debug = 1
-optimize = 0
-threads = 1
+
+ifeq (,$(debug))
+ debug = 1
+endif
+ifeq (,$(distrib))
+ distrib = 0
+endif
+ifeq (,$(optimize))
+ optimize = 0
+endif
+ifeq (,$(threads))
+ threads = 1
+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.
@@ -25,7 +35,12 @@ CCFLAGS += $(CFLAGS) -fno-implicit-templates
DCFLAGS += -g
DLD = $(CXX)
LD = $(CXX)
-LDFLAGS += -Wl,-bI:/lib/pse.exp
+LDFLAGS += -Wl,-bI:/lib/pse.exp
+# Linking TAO_IDL runs out of TOC space unless -bbigtoc is given to ld.
+# Don't do it for everything because it decreases run-time performance.
+ifeq ($(notdir $(shell pwd)), TAO_IDL)
+LDFLAGS += -Wl,-bbigtoc
+endif
OCFLAGS = -O2
OCCFLAGS = $(OCFLAGS)
ifeq ($(threads),1)