pkgsrc/textproc/detex/patches/patch-aa
wiz 5bf2a39388 Honor LDFLAGS. Fixes RELRO build.
Set LICENSE while here.
2017-07-12 10:56:51 +00:00

34 lines
642 B
Text

$NetBSD: patch-aa,v 1.5 2017/07/12 10:56:51 wiz Exp $
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
#
-CFLAGS = -O ${DEFS}
+#CFLAGS = -O ${DEFS}
# Use your favorite lexical scanner
#
@@ -80,7 +80,7 @@ LEX = lex
# scanner library
#
-LEXLIB = -ll
+#LEXLIB = -ll
#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