summaryrefslogtreecommitdiff
path: root/textproc/detex/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-07-12 10:56:51 +0000
committerwiz <wiz@pkgsrc.org>2017-07-12 10:56:51 +0000
commitc7884d45a2827103624fd9da529a7112278dbec3 (patch)
tree67fe839ac0f95b3b6ba5c0f526f9fadf266ae21c /textproc/detex/patches
parentd5f000930734154f4244d7d648d8aec2acb6a48b (diff)
downloadpkgsrc-c7884d45a2827103624fd9da529a7112278dbec3.tar.gz
Honor LDFLAGS. Fixes RELRO build.
Set LICENSE while here.
Diffstat (limited to 'textproc/detex/patches')
-rw-r--r--textproc/detex/patches/patch-aa22
1 files changed, 17 insertions, 5 deletions
diff --git a/textproc/detex/patches/patch-aa b/textproc/detex/patches/patch-aa
index a9577deebd4..092b5d5a7aa 100644
--- a/textproc/detex/patches/patch-aa
+++ b/textproc/detex/patches/patch-aa
@@ -1,8 +1,11 @@
-$NetBSD: patch-aa,v 1.4 2008/11/20 02:19:26 chuck Exp $
+$NetBSD: patch-aa,v 1.5 2017/07/12 10:56:51 wiz Exp $
---- Makefile.orig 2008-11-19 20:18:35.000000000 -0500
-+++ Makefile 2008-11-19 20:19:26.000000000 -0500
-@@ -69,7 +69,7 @@
+Chunks 1 & 2: ?
+Chunk 3: honor LDFLAGS.
+
+--- Makefile.orig 2008-02-01 19:55:51.000000000 +0000
++++ Makefile
+@@ -69,7 +69,7 @@ DEFS =
#
#DEFS += ${DEFS} -DNO_MALLOC_DECL
#
@@ -11,7 +14,7 @@ $NetBSD: patch-aa,v 1.4 2008/11/20 02:19:26 chuck Exp $
# Use your favorite lexical scanner
#
-@@ -80,7 +80,7 @@
+@@ -80,7 +80,7 @@ LEX = lex
# scanner library
#
@@ -20,3 +23,12 @@ $NetBSD: patch-aa,v 1.4 2008/11/20 02:19:26 chuck Exp $
#LEXLIB = -lfl
LPR = lpr -p
+@@ -104,7 +104,7 @@ D_OBJ = detex.o
+ all: ${PROGS}
+
+ detex: ${D_OBJ}
+- ${CC} ${CFLAGS} -o $@ ${D_OBJ} ${LEXLIB}
++ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${D_OBJ} ${LEXLIB}
+
+ detex.c:
+ sed -f states.sed detex.l > xxx.l