mickey 11b1f7d292 posgresql port (from freebsd)
most of major bugs cleaned, some of the smaller ones.
openbsd profile sent to the patches mailist.
1997-11-20 20:34:05 +00:00

48 lines
1.3 KiB
Plaintext

--- 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: