head 1.3; access; symbols pkgsrc-2022Q1:1.2.0.34 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.32 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.30 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.28 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.26 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.24 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.22 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.20 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.16 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.18 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.14 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.12 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.10 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.8 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.6 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.4 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.2 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.1.0.12 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.10 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.6 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.4 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.2 pkgsrc-2016Q4-base:1.1; locks; strict; comment @# @; 1.3 date 2022.04.24.17.50.26; author tnn; state dead; branches; next 1.2; commitid FolbnVSUGrdMMtBD; 1.2 date 2018.01.22.11.05.30; author jperkin; state Exp; branches; next 1.1; commitid HwEzVTTu9q8SsRnA; 1.1 date 2016.10.29.19.41.55; author adam; state Exp; branches; next ; commitid uzJlY84SD27PM4sz; desc @@ 1.3 log @retire postgresql96 (EOL) @ text @$NetBSD: patch-src_Makefile.shlib,v 1.2 2018/01/22 11:05:30 jperkin Exp $ Use correct linker flags. --- src/Makefile.shlib.orig 2017-11-06 22:08:55.000000000 +0000 +++ src/Makefile.shlib @@@@ -150,17 +150,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 @@@@ -176,6 +170,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) @@@@ -231,7 +236,7 @@@@ ifeq ($(PORTNAME), solaris) ifeq ($(with_gnu_ld), yes) LINK.shared += -Wl,-soname,$(soname) else - LINK.shared += -h $(soname) + LINK.shared += -Wl,-h,$(soname) endif endif endif @@@@ -482,8 +487,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)' && \ @@@@ -496,7 +503,7 @@@@ ifneq ($(shlib), $(shlib_bare)) $(LN_S) $(shlib) $(shlib_bare) endif endif # not win32 -endif # not cygwin +endif # cygwin endif # not aix ifneq (,$(findstring $(PORTNAME),win32 cygwin)) $(INSTALL_SHLIB) $< '$(DESTDIR)$(bindir)/$(shlib)' @ 1.2 log @postgresql*: Use correct linker flags on SunOS. @ text @d1 1 a1 1 $NetBSD: patch-src_Makefile.shlib,v 1.1 2016/10/29 19:41:55 adam Exp $ @ 1.1 log @The PostgreSQL Global Development Group has released an update to all supported versions of our database system, including 9.6.1, 9.5.5, 9.4.10, 9.3.15, 9.2.19, and 9.1.24. This is also the last update for the PostgreSQL 9.1 series as it is now end-of-life. This release fixes two issues that can cause data corruption, which are described in more detail below. It also patches a number of other bugs reported over the last three months. The project urges users to apply this update at the next possible downtime. @ text @d1 1 a1 1 $NetBSD: patch-src_Makefile.shlib,v 1.1 2016/02/25 21:37:35 tnn Exp $ d3 3 a5 1 --- src/Makefile.shlib.orig 2016-02-08 21:12:28.000000000 +0000 d7 1 a7 1 @@@@ -151,17 +151,11 @@@@ endif d25 1 a25 1 @@@@ -177,6 +171,17 @@@@ ifeq ($(PORTNAME), netbsd) d43 10 a52 1 @@@@ -474,8 +479,10 @@@@ ifdef soname d64 1 a64 1 @@@@ -488,7 +495,7 @@@@ ifneq ($(shlib), $(shlib_bare)) @