The CC test is fine and the right approach IMO; I used something similar in 
ffmpeg to check whether the compiler defaults to VFP, v6 etc.:
check_asm = $(shell echo 'void foo(void) { __asm__ volatile("$(1)"); }' | $(CC) 
-x c -c - -o /dev/null 2>/dev/null && echo 1 || echo 0)
vfp_asm := fadds s0, s0, s0
has_vfp := $(call check_asm, $(vfp_asm))
ifneq ($(has_vfp),1)
FLAVORS += vfp
endif

-- 
[arm] needs porting to thumb2
https://bugs.launchpad.net/bugs/513732
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to