aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-10-30 03:37:28 +0000
committerBruce Momjian <bruce@momjian.us>1997-10-30 03:37:28 +0000
commit868859b7e31c9ea3c6a1f76b5801b76156fad405 (patch)
treede80609e0c26f4dd70f3ff253f1ac66f46c29e31 /src
parent9939e5551363a89cfa51db0473f2c5dc0d5cf2c7 (diff)
downloadpostgresql-868859b7e31c9ea3c6a1f76b5801b76156fad405.tar.gz
postgresql-868859b7e31c9ea3c6a1f76b5801b76156fad405.zip
AIX patch from Darren King.
Diffstat (limited to 'src')
-rw-r--r--src/backend/port/univel/port.c17
-rw-r--r--src/makefiles/Makefile.aix6
-rw-r--r--src/template/.similar3
-rw-r--r--src/template/aix_32511
-rw-r--r--src/template/aix_41 (renamed from src/template/aix-cc)2
5 files changed, 17 insertions, 22 deletions
diff --git a/src/backend/port/univel/port.c b/src/backend/port/univel/port.c
index cf293ccac6c..907e344ee73 100644
--- a/src/backend/port/univel/port.c
+++ b/src/backend/port/univel/port.c
@@ -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 <sys/types.h>
#include <string.h>
diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix
index c929c781acc..2b99a28f888 100644
--- a/src/makefiles/Makefile.aix
+++ b/src/makefiles/Makefile.aix
@@ -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)
diff --git a/src/template/.similar b/src/template/.similar
index 3eab1ef47e7..b630baa4d35 100644
--- a/src/template/.similar
+++ b/src/template/.similar
@@ -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
index 00000000000..2cebc944c02
--- /dev/null
+++ b/src/template/aix_325
@@ -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
diff --git a/src/template/aix-cc b/src/template/aix_41
index 3be0d8abd62..bd900c9c42a 100644
--- a/src/template/aix-cc
+++ b/src/template/aix_41
@@ -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: