$NetBSD: patch-src_Makefile.shlib,v 1.3 2014/02/23 11:25:54 adam Exp $ --- src/Makefile.shlib.orig 2013-09-02 20:53:17.000000000 +0000 +++ src/Makefile.shlib @@ -156,17 +156,11 @@ endif ifeq ($(PORTNAME), freebsd) ifdef ELF_SYSTEM - ifdef SO_MAJOR_VERSION - shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) - endif LINK.shared = $(COMPILER) -shared ifdef soname LINK.shared += -Wl,-x,-soname,$(soname) endif else - ifdef SO_MAJOR_VERSION - shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) - endif LINK.shared = $(LD) -x -Bshareable -Bforcearchive endif endif @@ -182,6 +176,17 @@ ifeq ($(PORTNAME), netbsd) endif endif +ifeq ($(PORTNAME), dragonfly) + ifdef ELF_SYSTEM + LINK.shared = $(COMPILER) -shared + ifdef soname + LINK.shared += -Wl,-x,-soname,$(soname) + endif + else + LINK.shared = $(LD) -x -Bshareable -Bforcearchive + endif +endif + ifeq ($(PORTNAME), hpux) ifdef SO_MAJOR_VERSION shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) @@ -467,8 +480,10 @@ ifdef soname # we don't install $(shlib) on AIX # (see http://archives.postgresql.org/message-id/52EF20B2E3209443BC37736D00C3C1380A6E79FE@EXADV1.host.magwien.gv.at) ifneq ($(PORTNAME), aix) +ifeq ($(PORTNAME), cygwin) + $(INSTALL_SHLIB) $< '$(DESTDIR)$(bindir)/$(shlib)' +else $(INSTALL_SHLIB) $< '$(DESTDIR)$(libdir)/$(shlib)' -ifneq ($(PORTNAME), cygwin) ifneq ($(PORTNAME), win32) ifneq ($(shlib), $(shlib_major)) cd '$(DESTDIR)$(libdir)' && \ @@ -481,7 +496,7 @@ ifneq ($(shlib), $(shlib_bare)) $(LN_S) $(shlib) $(shlib_bare) endif endif # not win32 -endif # not cygwin +endif # cygwin endif # not aix else # no soname $(INSTALL_SHLIB) $< '$(DESTDIR)$(pkglibdir)/$(shlib)'