pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/slony1 slony1: honor LDFLAGS when linking on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff3e5016f048
branches:  trunk
changeset: 378440:ff3e5016f048
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue May 03 18:44:13 2022 +0000

description:
slony1: honor LDFLAGS when linking on NetBSD, as on Linux. Fixes RELRO
build

diffstat:

 databases/slony1/distinfo                                |   3 ++-
 databases/slony1/patches/patch-makefiles_Makefile.netbsd |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r a2eeb18a6eeb -r ff3e5016f048 databases/slony1/distinfo
--- a/databases/slony1/distinfo Tue May 03 18:32:13 2022 +0000
+++ b/databases/slony1/distinfo Tue May 03 18:44:13 2022 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.26 2021/10/26 10:10:05 nia Exp $
+$NetBSD: distinfo,v 1.27 2022/05/03 18:44:13 nia Exp $
 
 BLAKE2s (slony1-2.2.10.tar.bz2) = 04f8302ff05bb68947e35d806fa6bfeb2596e79b08ad1051af7ecb71474a9cc7
 SHA512 (slony1-2.2.10.tar.bz2) = 1b41addb7a0be0a130c2efcab1b241e3158d10a5a6e203d83f28353e303dd524e224ab9c04a7e37a0f89cd944237b90feeb8910eb35f717926aa3ad28dbe2d0f
 Size (slony1-2.2.10.tar.bz2) = 1464652 bytes
 SHA1 (patch-config.h.in) = 7348475c942c06d8d668f8b1a5d4fc4a03189017
 SHA1 (patch-configure) = 67eba0a1a45ef1f68a5a62627deb9e68f967b012
+SHA1 (patch-makefiles_Makefile.netbsd) = 29f668c0a8c58d02c9c832e5d30c3ef08a1b354c
 SHA1 (patch-src_slonik_slonik.c) = 301e6a401b9f0158e3c6f471d294dbd910f8897b
 SHA1 (patch-tools_start__slon.sh) = 449e381de530cd9485e48e780cab0990d9fef6f4
diff -r a2eeb18a6eeb -r ff3e5016f048 databases/slony1/patches/patch-makefiles_Makefile.netbsd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/slony1/patches/patch-makefiles_Makefile.netbsd  Tue May 03 18:44:13 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-makefiles_Makefile.netbsd,v 1.1 2022/05/03 18:44:13 nia Exp $
+
+Link with CC and honor LDFLAGS like Linux.
+This allows pkgsrc to apply any hardening features.
+
+--- makefiles/Makefile.netbsd.orig     2020-12-05 02:07:59.000000000 +0000
++++ makefiles/Makefile.netbsd
+@@ -13,7 +13,7 @@ CFLAGS_SL = -fpic -DPIC
+ 
+ %.so: $(SO_OBJS)
+ ifdef ELF_SYSTEM
+-      $(LD) -x -Bshareable -o $@ $<
++      $(CC) $(LDFLAGS) -shared -o $@ $<
+ else
+       $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
+       @echo building shared object $@



Home | Main Index | Thread Index | Old Index