Merge pull request #938 from robertbaldyga/fix-configure
Fix API incompatibility detection in configure script
This commit is contained in:
commit
471e9829c0
@ -8,6 +8,14 @@ obj-m += test_mod.o
|
||||
|
||||
MAKE_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
check_cflag=$(shell echo "" | \
|
||||
gcc -c -xc ${1} -o /dev/null - 2>/dev/null; \
|
||||
if [ $$? -eq 0 ]; then echo 1; else echo 0; fi; )
|
||||
|
||||
ifeq ($(call check_cflag,-Werror=int-conversion), 1)
|
||||
EXTRA_CFLAGS += -Werror=int-conversion
|
||||
endif
|
||||
|
||||
all:
|
||||
make -C $(KERNEL_DIR) M=$(MAKE_DIR) modules
|
||||
clean:
|
||||
|
Loading…
Reference in New Issue
Block a user