From 70f7e6a92041dcbdf167548e367cefcf3151cf3e Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Mon, 14 Jun 1999 16:58:14 +0000 Subject: Build shared lib correctly, w/o/ static one first. Shut up zillions of compile warnings on AIX 4.3, C++ 3.6.4. --- include/makeinclude/platform_aix4_cset++.GNU | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'include/makeinclude/platform_aix4_cset++.GNU') diff --git a/include/makeinclude/platform_aix4_cset++.GNU b/include/makeinclude/platform_aix4_cset++.GNU index 7adbbfb284e..30ae0b98208 100644 --- a/include/makeinclude/platform_aix4_cset++.GNU +++ b/include/makeinclude/platform_aix4_cset++.GNU @@ -17,21 +17,27 @@ # or a successor. debug = 1 -# xlC builds the shared lib from the static lib, so need to build both. -shared_libs_only = 0 -static_libs = 1 # 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) AIX_MINOR_VERS := $(shell uname -r) -CC = xlC +CC = xlc_r CXX = xlC_r # -qextchk is handy, but produces false type mismatches when linking # netsvcs with 3.1.4, so it's disabled. IBM reports this fixed in 3.6.4. -CCFLAGS += $(CFLAGS) -qtempinc -qflag=w:w -qinfo +CCFLAGS += $(CFLAGS) -qtempinc -qinfo +# AIX 4.3 and IBM C/C++ compilers 3.6.4 produce a bazillion warnings +# about 0-valued preprocessor defs. The problem may be a 3.6.4 compiler thing, +# but the only way I know of at this moment to turn the things off is to switch +# it based on the OS minor vers (assuming AIX 4.3 is used w/ xlC 3.6.4). +ifeq ($(AIX_MINOR_VERS),3) + CCFLAGS += -qflag=e:e +else + CCFLAGS += -qflag=w:w +endif CPPFLAGS += -qlanglvl=ansi -DACE_AIX_MAJOR_VERS=$(AIX_MAJOR_VERS) -DACE_AIX_MINOR_VERS=$(AIX_MINOR_VERS) # -qinitauto seems useful, but when built with -qinitauto=5F, the @@ -40,9 +46,10 @@ DCFLAGS += -g -qcheck=nobounds:div:null DLD = makeC++SharedLib_r LD = $(CXX) -SHLIBA = $(SHLIB:lib%.so=lib%shr.a) -ifdef SHLIB + +ifeq ($(shared_libs),1) ACELIB = -lACEshr +SHLIBA = $(SHLIB:lib%.so=lib%shr.a) endif ifeq ($(AIX_MINOR_VERS),1) @@ -64,6 +71,6 @@ LDFLAGS += -bI:/lib/pse.exp OCCFLAGS += -qarch=com RANLIB = ranlib SOFLAGS = -p 0 -STATLIB = $(VLIB) TEMPINCDIR = tempinc +TMPL_OBJS := $(TEMPINCDIR)/*.o SOBUILD = -- cgit v1.2.1