2023
by H. Peter Anvin
[klibc] Inline __arch_libcinit() |
1 |
# klibc-cc-option
|
2 |
# Usage: cflags-y += $(call klibc-cc-option,-march=winchip-c6,-march=i586)
|
|
3 |
||
4 |
klibc-cc-option = $(call try-run,\ |
|
5 |
$(CC) $(KLIBCCPPFLAGS) $(KLIBCCFLAGS) $(1) -c -xc /dev/null -o "$$TMP",$(1),$(2)) |
|
6 |
||
7 |
# klibc-cc-option-yn
|
|
8 |
# Usage: flag := $(call klibc-cc-option-yn,-march=winchip-c6)
|
|
9 |
klibc-cc-option-yn = $(call try-run,\ |
|
10 |
$(CC) $(KLIBCCPPFLAGS) $(KLIBCCFLAGS) $(1) -c -xc /dev/null -o "$$TMP",y,n) |
|
11 |