Revision dc92ee1b

View differences:

common.mak
33 33
LOCAL_COMMON_CPPFLAGS = -I$(LOCAL_X264)/include -I$(LOCAL_BZ2)/include -I$(LOCAL_Z)/include -I$(LOCAL_MP3LAME)/include
34 34
#LOCAL_COMMON_LDFLAGS = -L$(LOCAL_X264)/lib -L$(LOCAL_BZ2)/lib -L$(LOCAL_MP3LAME)/lib
35 35
LOCAL_COMMON_LDLIBS = $(LOCAL_X264)/lib/libx264.a $(LOCAL_BZ2)/lib/libbz2.a $(LOCAL_Z)/lib/libz.a $(LOCAL_MP3LAME)/lib/libmp3lame.a
36

  
37
cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
38
              > /dev/null 2>&1; then echo "$(1)"; fi ;)
39

  
40
ld-option = $(shell if echo "int main(){return 0;}" | \
41
		$(CC) $(LDFLAGS) $(CFLAGS) $(1) -o /dev/null -xc - \
42
		> /dev/null 2>&1; then echo "$(1)"; fi ;)
43

  
44
LDLIBS += $(call ld-option, -lva)
45
LDLIBS += $(call ld-option, -lvga)

Also available in: Unified diff