Skip to content

Commit ce37b3f

Browse files
mkannwischerhanno-becker
authored andcommitted
Make: Support CFLAGS as both env var and make argument
We usually pass arguments to make through environment variables: CFLAGS="-std=c11" make quickcheck It currently does not work to pass it as a make argument: make quickcheck CFLAGS="-std=c11" This commit fixes that. Resolves #1315 Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
1 parent 2abafd4 commit ce37b3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/mk/config.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ CC_AR := $(CROSS_PREFIX)$(CC_AR)
3030
#################
3131
# Common config #
3232
#################
33-
CFLAGS := \
33+
34+
override CFLAGS := \
3435
-Wall \
3536
-Wextra \
3637
-Werror=unused-result \

0 commit comments

Comments
 (0)