pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/puzzles Honor LDFLAGS, fixes RELRO build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba91617551d5
branches:  trunk
changeset: 365296:ba91617551d5
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jul 13 12:33:37 2017 +0000

description:
Honor LDFLAGS, fixes RELRO build.

diffstat:

 games/puzzles/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r c5eabab7fe5a -r ba91617551d5 games/puzzles/Makefile
--- a/games/puzzles/Makefile    Thu Jul 13 12:29:09 2017 +0000
+++ b/games/puzzles/Makefile    Thu Jul 13 12:33:37 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2017/02/12 06:25:22 ryoon Exp $
+# $NetBSD: Makefile,v 1.54 2017/07/13 12:33:37 wiz Exp $
 
 DISTNAME=      puzzles
 PKGNAME=       puzzles-20160429
@@ -24,6 +24,12 @@
 MAKE_FILE=     Makefile.gtk
 CFLAGS+=       -DREVISION=${DISTNAME:S/puzzles-r//}
 
+SUBST_CLASSES+=                ldflags
+SUBST_SED.ldflags+=    -e 's/$$(CC)/$$(CC) $$(LDFLAGS)/g'
+SUBST_FILES.ldflags+=  Makefile.gtk
+SUBST_MESSAGE.ldflags= Honoring LDFLAGS.
+SUBST_STAGE.ldflags=   pre-build
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/puzzles.txt \
                ${DESTDIR}${PREFIX}/share/doc/puzzles



Home | Main Index | Thread Index | Old Index