Avoid passing -g to can-floor-without-libm as clang doesn't like -g with -o /dev/null
This commit is contained in:
parent
eb0d40a2ad
commit
6211f81535
2
Makefile
2
Makefile
@ -21,7 +21,7 @@ KRKMODS = $(wildcard modules/*.krk modules/*/*.krk modules/*/*/*.krk)
|
||||
|
||||
all: ${TARGET} ${MODULES} ${TOOLS} ${GENMODS}
|
||||
|
||||
ifneq ($(shell tools/can-floor-without-libm.sh "$(CC) $(CFLAGS)"),yes)
|
||||
ifneq ($(shell tools/can-floor-without-libm.sh "$(CC) $(filter-out -g,$(CFLAGS))"),yes)
|
||||
LDLIBS += -lm
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user