pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/R-ps (sysutils/R-ps) adhoc, purely tentative ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a7d7bf802ea
branches:  trunk
changeset: 768909:2a7d7bf802ea
user:      mef <mef%pkgsrc.org@localhost>
date:      Wed Nov 03 13:59:13 2021 +0000

description:
(sysutils/R-ps) adhoc, purely tentative fix for RELRO

diffstat:

 sysutils/R-ps/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r b80cdc17229f -r 2a7d7bf802ea sysutils/R-ps/Makefile
--- a/sysutils/R-ps/Makefile    Wed Nov 03 13:37:25 2021 +0000
+++ b/sysutils/R-ps/Makefile    Wed Nov 03 13:59:13 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2021/08/30 00:53:15 mef Exp $
+# $NetBSD: Makefile,v 1.4 2021/11/03 13:59:13 mef Exp $
 
 R_PKGNAME=     ps
 R_PKGVER=      1.6.0
@@ -10,6 +10,15 @@
 
 TEST_DEPENDS+= R-pingr-[0-9]*:../../net/R-pingr
 
+# ps/src/Makevars.in:      $(CC) $(CFLAGS)  -Wall px.c -o px
+#                          PKG_LIBS = @LIBS@
+SUBST_CLASSES+=        relro
+SUBST_MESSAGE.relro=   RELRO (partial) support
+SUBST_FILES.relro=     src/Makevars.in
+SUBST_STAGE.relro=     pre-configure
+SUBST_SED.relro=       -e '/Wall px.c/s/CC)/CC) -Wl,-z,relro /'
+SUBST_SED.relro+=      -e 's/@LIBS@/-Wl,-z,relro /'
+
 USE_LANGUAGES= c
 
 .include "../../math/R/Makefile.extension"



Home | Main Index | Thread Index | Old Index