logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

vis-test-0.5-respect_cc_cflags.patch (830B)


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