diff options
Diffstat (limited to 'android/build/host_executable.make')
-rw-r--r-- | android/build/host_executable.make | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/android/build/host_executable.make b/android/build/host_executable.make index 704da98..ca1e8ee 100644 --- a/android/build/host_executable.make +++ b/android/build/host_executable.make @@ -18,13 +18,15 @@ LOCAL_BUILT_MODULE := $(call executable-path,$(LOCAL_MODULE))$(HOST_EXEEXT) LOCAL_CC ?= $(CC) include $(BUILD_SYSTEM)/binary.make +LOCAL_LIBRARIES := $(foreach lib,$(LOCAL_STATIC_LIBRARIES),$(call library-path,$(lib))) + LOCAL_LDLIBS := $(foreach lib,$(LOCAL_STATIC_LIBRARIES),$(call library-path,$(lib))) $(LOCAL_LDLIBS) $(LOCAL_BUILT_MODULE): PRIVATE_LDFLAGS := $(LDFLAGS) $(LOCAL_LDFLAGS) $(LOCAL_BUILT_MODULE): PRIVATE_LDLIBS := $(LOCAL_LDLIBS) $(LOCAL_BUILT_MODULE): PRIVATE_OBJS := $(LOCAL_OBJECTS) -$(LOCAL_BUILT_MODULE): $(LOCAL_OBJECTS) +$(LOCAL_BUILT_MODULE): $(LOCAL_OBJECTS) $(LOCAL_LIBRARIES) @ mkdir -p $(dir $@) @ echo "Executable: $@" $(hide) $(LD) $(PRIVATE_LDFLAGS) -o $@ $(PRIVATE_LIBRARY) $(PRIVATE_OBJS) $(PRIVATE_LDLIBS) |