diff --git a/projects/ffi/build.mk b/projects/ffi/build.mk index fc2078e..4f1867c 100644 --- a/projects/ffi/build.mk +++ b/projects/ffi/build.mk @@ -2,6 +2,8 @@ $(eval $(call project-define,ffi)) +FFI_EXTRA_LDFLAGS = -Wl,--undefined-version + $(FFI_ANDROID): cd $(FFI_ANDROID_BUILD_DIR) && make install -j $(THREADS) cp $(FFI_SRCS)/LICENSE $(ANDROID_OUT_DIR)/licenses/ffi @@ -13,7 +15,7 @@ $(FFI_HOST): $(FFI_ANDROID_BUILD_DIR): $(ANDROID_CONFIG_SITE) mkdir -p $@ - cd $@ && $(FFI_SRCS)/configure $(ANDROID_EXTRA_CONFIGURE_FLAGS) + cd $@ && EXTRA_LDFLAGS=$(FFI_EXTRA_LDFLAGS) $(FFI_SRCS)/configure $(ANDROID_EXTRA_CONFIGURE_FLAGS) $(FFI_HOST_BUILD_DIR): $(HOST_CONFIG_SITE) mkdir -p $@