hurl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 59def2c4c0c35c5a6fd38fe209343232f510d903
parent 6466dff70206fabeb89d70c893d88c0a285d1265
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 10 Aug 2021 11:30:06 +0200

add GNU_SOURCE for strcasestr and other CPPFLAGS

Prevents an error and warnings when compiling on Void Linux glibc.

Diffstat:
MMakefile | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -9,6 +9,7 @@ MANDIR = ${PREFIX}/man/man1 HURL_CFLAGS = ${CFLAGS} HURL_LDFLAGS = -ltls ${LDFLAGS} +HURL_CPPFLAGS = -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_BSD_SOURCE SRC = hurl.c OBJ = ${SRC:.c=.o} @@ -16,7 +17,7 @@ OBJ = ${SRC:.c=.o} all: ${NAME} .c.o: - ${CC} ${HURL_CFLAGS} -c $< + ${CC} ${HURL_CFLAGS} ${HURL_CPPFLAGS} -c $< ${OBJ}: