summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.aix
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-11-04 16:35:55 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-11-04 16:35:55 +0000
commitc7a794998a4a291e2a234c860170ec76bb1dd176 (patch)
tree648394a88a4c4f55c7c87495dc90d44db4f511f9 /src/makefiles/Makefile.aix
parent1fdf2edc9d9ef5b1eae5b840fa0cb4287be0fa0d (diff)
downloadpostgresql-c7a794998a4a291e2a234c860170ec76bb1dd176.tar.gz
Separate CFLAGS_SL and CXXFLAGS_SL, to allow building with C and C++
compilers from different providers. (Especially important since the C++ compiler that goes with your favourite C compiler might not work.)
Diffstat (limited to 'src/makefiles/Makefile.aix')
-rw-r--r--src/makefiles/Makefile.aix7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix
index bb9c8f255c..80d949d2e6 100644
--- a/src/makefiles/Makefile.aix
+++ b/src/makefiles/Makefile.aix
@@ -9,13 +9,12 @@ AROPT = crs
DLSUFFIX = .so
ifneq ($(GCC), yes)
ifeq ($(host_os), aix3.2.5)
- CFLAGS_SL = -e _nostart
+ LDFLAGS_SL = -e _nostart
endif
ifeq ($(host_os), aix4.1)
- CFLAGS_SL = -bnoentry
+ LDFLAGS_SL = -bnoentry
endif
endif
-CFLAGS_SL += -lc
EXPSUFF= .exp
@@ -35,4 +34,4 @@ $(POSTGRES_IMP):
%$(DLSUFFIX): %.o %$(EXPSUFF)
@echo Making shared library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp
- $(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(libdir)/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(CFLAGS_SL)
+ $(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(libdir)/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL) -lc