summaryrefslogtreecommitdiff
path: root/databases/postgresql/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql/patches/patch-af')
-rw-r--r--databases/postgresql/patches/patch-af47
1 files changed, 47 insertions, 0 deletions
diff --git a/databases/postgresql/patches/patch-af b/databases/postgresql/patches/patch-af
new file mode 100644
index 00000000000..17fa9b470ce
--- /dev/null
+++ b/databases/postgresql/patches/patch-af
@@ -0,0 +1,47 @@
+--- interfaces/libpgtcl/Makefile.orig Mon Sep 29 23:02:46 1997
++++ interfaces/libpgtcl/Makefile Sun Oct 5 02:12:00 1997
+@@ -39,6 +39,14 @@
+ endif
+ endif
+
++ifeq ($(PORTNAME), BSD44_derived)
++ CFLAGS += $(CFLAGS_SL)
++ shlib := libpgtcl.so.1.0
++ install-shlib-dep := install-shlib
++ LDFLAGS_SL = -x -Bshareable -Bforcearchive
++ LDFLAGS += -L $(SRCDIR)/interfaces/libpq -lpq
++endif
++
+ ifeq ($(PORTNAME), i386_solaris)
+ CFLAGS+= -fPIC
+ endif
+@@ -56,10 +64,10 @@
+ endif
+ $(RANLIB) libpgtcl.a
+
+-libpgtcl.so.1: $(OBJS)
+- $(CC) $(LDFLAGS) -shared $(OBJS) -o libpgtcl.so.1
++libpgtcl.so.1.0: $(OBJS)
++ $(CC) $(LDFLAGS) -shared $(OBJS) -o libpgtcl.so.1.0
+ rm -f libpgtcl.so
+- ln -s libpgtcl.so.1 libpgtcl.so
++ ln -s libpgtcl.so.1.0 libpgtcl.so
+
+ .PHONY: beforeinstall-headers install-headers
+ .PHONY: install install-libpgtcl
+@@ -75,11 +83,11 @@
+ install-libpgtcl: libpgtcl.a
+ $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.a $(DESTDIR)$(LIBDIR)/libpgtcl.a
+
+-install-shlib: libpgtcl.so.1
+- $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.so.1 \
+- $(DESTDIR)$(LIBDIR)/libpgtcl.so.1
++install-shlib: libpgtcl.so.1.0
++ $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.so.1.0 \
++ $(DESTDIR)$(LIBDIR)/libpgtcl.so.1.0
+ rm -f $(DESTDIR)$(LIBDIR)/libpgtcl.so
+- ln -s libpgtcl.so.1 $(DESTDIR)$(LIBDIR)/libpgtcl.so
++ ln -s libpgtcl.so.1.0 $(DESTDIR)$(LIBDIR)/libpgtcl.so
+
+ .PHONY: clean
+ clean: