summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2000-04-05 14:47:21 +0000
committerBruce Momjian2000-04-05 14:47:21 +0000
commit6995c5fbad1f2e1e4e9dacbaf76ed2a235feb07a (patch)
tree95b07eb2e7dccb658fee8b7bc9d3ff6ae46dc89e
parent15942b823aa25083c4885a9aac11e519bdd3346c (diff)
Please forget all I said about gcc and AIX in my previous mail.
It does work with the following patch applied and gcc 2.95.2 . Use --with-template=aix_gcc to compile the whole lot with gcc. The geometry regression test produces different precision. With optimization I run into regression failures starting at oidjoins, thus no -O2. Anybody else try gcc 2.95.2 and -O2 on beta4 ? This is an important patch, since recent versions of the IBM compiler are not for free, and thus most questions I get concern gcc. Andreas PS.: I am testing with beta4
-rw-r--r--src/makefiles/Makefile.aix2
-rw-r--r--src/template/aix_gcc5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix
index 603adaa1470..d614f1a0371 100644
--- a/src/makefiles/Makefile.aix
+++ b/src/makefiles/Makefile.aix
@@ -15,7 +15,7 @@ MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh
$(POSTGRES_IMP):
@echo Making $@
$(MKLDEXPORT) postgres $(BINDIR) > $@
- $(CC) -bE:$(SRCDIR)/backend/$@ -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
+ $(CC) -Wl,-bE:$(SRCDIR)/backend/$@ -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
%$(EXPSUFF):
$(MKLDEXPORT) $*.o `pwd` > $*$(EXPSUFF)
diff --git a/src/template/aix_gcc b/src/template/aix_gcc
index 5a660639d78..1dd52a55c41 100644
--- a/src/template/aix_gcc
+++ b/src/template/aix_gcc
@@ -1,6 +1,7 @@
AROPT:crs
-CFLAGS:-fsigned-chars
-SHARED_LIB:
+CFLAGS:-pipe
+CXXFLAGS:-pipe
+SHARED_LIB:-lc
ALL:
SRCH_INC:
SRCH_LIB: