vis-test-0.5-respect_cc_cflags.patch (830B)
- From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
- Date: Sun, 10 May 2020 23:00:36 +0200
- Subject: [PATCH] core/Makefile: Respect $CC and $CFLAGS
- X-Adapted-From: https://github.com/martanne/vis-test/pull/22
- Related: https://bugs.gentoo.org/722014
- ---
- test/core/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/test/core/Makefile b/test/core/Makefile
- --- a/test/core/Makefile
- +++ b/test/core/Makefile
- @@ -12,7 +12,7 @@ test: $(ALL)
- config.h:
- @echo Generating ccan configuration header
- - @${CC} ccan-config.c -o ccan-config && ./ccan-config > config.h
- + @${CC} ccan-config.c -o ccan-config && ./ccan-config "${CC}" ${CFLAGS} > config.h
- text-test: config.h text-test.c ../../text.c ../../text-util.c ../../text-motions.c ../../text-objects.c ../../text-regex.c
- @echo Compiling $@ binary