up: LOCAL_LDLIBS var
opt: use define func instead of cmd
up: LOCAL_LDFLAGS var
up: LOCAL_CFLAGS var