neb-wipe: honor LDFLAGS.

Fixes RELRO build. Bump PKGREVISION.
This commit is contained in:
wiz 2021-08-13 15:41:23 +00:00
parent fcabf0bbff
commit 922a256d65
3 changed files with 20 additions and 4 deletions

View file

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.6 2021/08/13 14:42:23 abs Exp $
# $NetBSD: Makefile,v 1.7 2021/08/13 15:41:23 wiz Exp $
DISTNAME= neb-wipe-src-1.0
PKGNAME= neb-wipe-1.0
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=neb-stoehr/}
EXTRACT_SUFX= .tgz
@ -9,12 +10,11 @@ EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://neb-stoehr.sourceforge.net/
COMMENT= Secure disk partition eraser
LICENSE= original-bsd
NO_CONFIGURE= yes
ONLY_FOR_PLATFORM= NetBSD-*-* OpenBSD-*-*
LICENSE= original-bsd
RELRO_SUPPORTED= no
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.2 2015/11/04 01:32:22 agc Exp $
$NetBSD: distinfo,v 1.3 2021/08/13 15:41:23 wiz Exp $
SHA1 (neb-wipe-src-1.0.tgz) = 7e77554271a055b3c2e943831d21a0a71f88cee6
RMD160 (neb-wipe-src-1.0.tgz) = f004cc85f1284924c91d452e3df9eba68946b0b6
SHA512 (neb-wipe-src-1.0.tgz) = 24912070efa80d876c38ce817e8ca6253fa0a8308edee54b132694e16bdb06f40ba8a4dffd5174d2b21aa420aa953a8bb4b065c82daf552959c2b2e6cb44cf40
Size (neb-wipe-src-1.0.tgz) = 4518 bytes
SHA1 (patch-Makefile) = 74f4688385329424e721a8af5827511e709fe61e

View file

@ -0,0 +1,15 @@
$NetBSD: patch-Makefile,v 1.1 2021/08/13 15:41:23 wiz Exp $
Honor LDFLAGS.
--- Makefile.orig 2005-02-27 18:12:00.000000000 +0000
+++ Makefile
@@ -7,7 +7,7 @@ LIBS?=-lutil
all: neb-wipe
neb-wipe: neb-wipe.o
- $(CC) $(CFLAGS) -o neb-wipe $(LIBS) neb-wipe.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o neb-wipe $(LIBS) neb-wipe.o
neb-wipe.o: neb-wipe.c
$(CC) $(CFLAGS) -c neb-wipe.c