pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/puzzles



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Jul 13 12:33:37 UTC 2017

Modified Files:
        pkgsrc/games/puzzles: Makefile

Log Message:
Honor LDFLAGS, fixes RELRO build.


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 pkgsrc/games/puzzles/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/puzzles/Makefile
diff -u pkgsrc/games/puzzles/Makefile:1.53 pkgsrc/games/puzzles/Makefile:1.54
--- pkgsrc/games/puzzles/Makefile:1.53  Sun Feb 12 06:25:22 2017
+++ pkgsrc/games/puzzles/Makefile       Thu Jul 13 12:33:37 2017
@@ -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_FLAGS=  gamesdir=${PREFIX}/bin
 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