should pass CFLAGS to can-floor-without-libm.sh as it may depend on -O option

This commit is contained in:
K. Lange 2023-12-14 10:05:01 +09:00
parent eb105690b5
commit bd0b80827e

View File

@ -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)),yes)
ifneq ($(shell tools/can-floor-without-libm.sh "$(CC) $(CFLAGS)"),yes)
LDLIBS += -lm
endif