AIX patch from Darren King.
authorBruce Momjian
Thu, 30 Oct 1997 03:37:28 +0000 (03:37 +0000)
committerBruce Momjian
Thu, 30 Oct 1997 03:37:28 +0000 (03:37 +0000)
src/backend/port/univel/port.c
src/makefiles/Makefile.aix
src/template/.similar
src/template/aix_325 [new file with mode: 0644]
src/template/aix_41 [moved from src/template/aix-cc with 84% similarity]

index cf293ccac6c4649aa03d1ebed7ddaedf1ece89f7..907e344ee73508349d38dd9fdc39962f8f4ec250 100644 (file)
@@ -70,23 +70,6 @@ getrusage(int who, struct rusage * rusage)
    return (0);
 }
 
-/*
- * Copyright (c) 1987 Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms are permitted
- * provided that this notice is preserved and that due credit is given
- * to the University of California at Berkeley. The name of the University
- * may not be used to endorse or promote products derived from this
- * software without specific written prior permission. This software
- * is provided ``as is'' without express or implied warranty.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strcasecmp.c   5.5 (Berkeley) 11/24/87";
-
-#endif                         /* LIBC_SCCS and not lint */
-
 #include 
 #include 
 
index c929c781accda831916047e54ae6ecc4935b3dcd..2b99a28f8886ffbccb94b5560c5dffdb2a627cbb 100644 (file)
@@ -17,8 +17,6 @@ $(POSTGRES_IMP):
 %$(EXPSUFF):
    $(MKLDEXPORT) $*.o `pwd` > $*$(EXPSUFF)
 
-%.so: %.o %$(EXPSUFF)
+%$(DLSUFFIX): %.o %$(EXPSUFF)
    @echo Making share library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp
-   $(LD) -H512 -e _nostart -bM:SRE -bI:$(LIBDIR)/$(POSTGRES_IMP) -bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) -lc
-   #41+ $(LD) -H512 -bnoentry -bM:SRE -bI:$(LIBDIR)/$(POSTGRES_IMP) -bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) -lc
-   #325 $(LD) -H512 -e _nostart -bM:SRE -bI:$(LIBDIR)/$(POSTGRES_IMP) -bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) -lc
+   $(LD) -H512 -bM:SRE -bI:$(LIBDIR)/$(POSTGRES_IMP) -bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(CFLAGS_SL)
index 3eab1ef47e7bc378ce74de2be5859e99c0eb3480..b630baa4d351bb3511af18ceacbe64a11708d5e3 100644 (file)
@@ -13,3 +13,6 @@ i586-pc-linux-gnu=linux-elf
 i686-pc-linux-gnu=linux-elf
 sparc-unknown-linux-gnu=linux-elf
 alpha-unknown-linux-gnu=linuxalpha
+powerpc-ibm-aix3.2.5=aix_325
+powerpc-ibm-aix4.1.4.0=aix_41
+powerpc-ibm-aix4.1.5.0=aix_41
diff --git a/src/template/aix_325 b/src/template/aix_325
new file mode 100644 (file)
index 0000000..2cebc94
--- /dev/null
@@ -0,0 +1,11 @@
+AROPT:crs
+CFLAGS:-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg
+SHARED_LIB:-e _nostart -lc
+ALL:
+SRCH_INC:
+SRCH_LIB:
+USE_LOCALE:no
+DLSUFFIX:.so
+YFLAGS:-d
+YACC:
+CC:xlc
similarity index 84%
rename from src/template/aix-cc
rename to src/template/aix_41
index 3be0d8abd62f0f5c646f9382cdcb0b5c480e7745..bd900c9c42acbdfcdd7e2fd82961a40e7cfdae1e 100644 (file)
@@ -1,6 +1,6 @@
 AROPT:crs
 CFLAGS:-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg
-SHARED_LIB:
+SHARED_LIB:-bnoentry -lc
 ALL:
 SRCH_INC:
 SRCH_LIB: