|
@@ -148,7 +148,7 @@ cc-ldoption = $(call try-run,\
|
|
|
# ld-option
|
|
|
# Usage: LDFLAGS += $(call ld-option, -X)
|
|
|
ld-option = $(call try-run,\
|
|
|
- $(CC) /dev/null -c -o "$$TMPO" ; $(LD) $(1) "$$TMPO" -o "$$TMP",$(1),$(2))
|
|
|
+ $(CC) -x c /dev/null -c -o "$$TMPO" ; $(LD) $(1) "$$TMPO" -o "$$TMP",$(1),$(2))
|
|
|
|
|
|
# ar-option
|
|
|
# Usage: KBUILD_ARFLAGS := $(call ar-option,D)
|