pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/xview-lib (x11/xview-lib) Purely temporarily, adho...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/68418115e0aa
branches:  trunk
changeset: 768897:68418115e0aa
user:      mef <mef%pkgsrc.org@localhost>
date:      Wed Nov 03 10:37:12 2021 +0000

description:
(x11/xview-lib) Purely temporarily, adhoc fix for RELRO for USE_IMAKE version

diffstat:

 x11/xview-lib/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 493b0abf51c4 -r 68418115e0aa x11/xview-lib/Makefile
--- a/x11/xview-lib/Makefile    Wed Nov 03 10:33:58 2021 +0000
+++ b/x11/xview-lib/Makefile    Wed Nov 03 10:37:12 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2013/03/25 07:46:41 sbd Exp $
+# $NetBSD: Makefile,v 1.42 2021/11/03 10:37:12 mef Exp $
 
 DISTNAME=              xview3.2p1-X11R6
 PKGNAME=               xview-lib-3.2.1
@@ -21,6 +21,14 @@
 
 USE_IMAKE=             yes
 
+SUBST_CLASSES+=                relro
+SUBST_MESSAGE.relro=   Add RELRO support
+SUBST_FILES.relro=     lib/libxview/Makefile
+SUBST_FILES.relro+=    lib/libolgx/Makefile
+SUBST_STAGE.relro=     post-configure
+#      SHLIBLDFLAGS = -shared -Wl,-rpath,$(USRLIBDIRPATH) -Wl,-rpath,$(REALPROJECTROOT)/lib -L $(REALPROJECTROOT)/lib $(SHLIBGLOBALSFLAGS)
+SUBST_SED.relro=       '-e /SHLIBLDFLAGS = /s/-Wl,/-Wl,-z,relro -Wl,-z,now -Wl,/'
+
 post-install:
        cd ${DESTDIR}${PREFIX}/lib && ${LN} -fs libolgx.so.3.2 libolgx.so.3 && \
                ${LN} -fs libxview.so.3.2 libxview.so.3



Home | Main Index | Thread Index | Old Index