Honor LDFLAGS, fixes RELRO build.
This commit is contained in:
parent
61fddea0c7
commit
9fd1b7def9
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue