]> granicus.if.org Git - postgresql/commitdiff
Please forget all I said about gcc and AIX in my previous mail.
authorBruce Momjian <bruce@momjian.us>
Wed, 5 Apr 2000 14:47:21 +0000 (14:47 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 5 Apr 2000 14:47:21 +0000 (14:47 +0000)
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

src/makefiles/Makefile.aix
src/template/aix_gcc

index 603adaa147013950f5b9d94a2b4b892094e36957..d614f1a0371916ac74ddf3bb41a7014f783085e0 100644 (file)
@@ -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)
index 5a660639d780802114547824a7723f45dfc55298..1dd52a55c419bda77d9af4cf3bfde1d205985269 100644 (file)
@@ -1,6 +1,7 @@
 AROPT:crs
-CFLAGS:-fsigned-chars
-SHARED_LIB:
+CFLAGS:-pipe
+CXXFLAGS:-pipe
+SHARED_LIB:-lc
 ALL:
 SRCH_INC:
 SRCH_LIB: