File: Kbuild.klibc.include

package info (click to toggle)
klibc 2.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,204 kB
  • sloc: ansic: 48,657; asm: 2,204; perl: 693; makefile: 220; sh: 177
file content (11 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11

# klibc-cc-option
# Usage: cflags-y += $(call klibc-cc-option,-march=winchip-c6,-march=i586)

klibc-cc-option = $(call try-run,\
	$(CC) $(KLIBCCPPFLAGS) $(KLIBCCFLAGS) $(1) -c -xc /dev/null -o "$$TMP",$(1),$(2))

# klibc-cc-option-yn
# Usage: flag := $(call klibc-cc-option-yn,-march=winchip-c6)
klibc-cc-option-yn = $(call try-run,\
	$(CC) $(KLIBCCPPFLAGS) $(KLIBCCFLAGS) $(1) -c -xc /dev/null -o "$$TMP",y,n)