diff options
Diffstat (limited to 'fastboot/Android.mk')
-rw-r--r-- | fastboot/Android.mk | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/fastboot/Android.mk b/fastboot/Android.mk index 8fc1f0b..44b9651 100644 --- a/fastboot/Android.mk +++ b/fastboot/Android.mk @@ -51,24 +51,28 @@ ifeq ($(HOST_OS),windows) LOCAL_C_INCLUDES += development/host/windows/usb/api endif -# The following libf2fs_* are from system/extras/f2fs_utils, -# and do not use code in external/f2fs-tools. LOCAL_STATIC_LIBRARIES := \ $(EXTRA_STATIC_LIBS) \ libzipfile \ libunz \ libext4_utils_host \ - libf2fs_utils_host \ - libf2fs_dlutils_host \ libsparse_host \ libz -# libf2fs_dlutils_host will dlopen("libf2fs_fmt_host_dyn") -LOCAL_LDLIBS := -ldl -LOCAL_SHARED_LIBRARIES := libf2fs_fmt_host_dyn + ifneq ($(HOST_OS),windows) LOCAL_STATIC_LIBRARIES += libselinux endif # HOST_OS != windows +ifneq ($(HOST_OS),windows) +# libf2fs_dlutils_host will dlopen("libf2fs_fmt_host_dyn") +LOCAL_CFLAGS += -DUSE_F2FS +LOCAL_LDLIBS += -ldl +LOCAL_SHARED_LIBRARIES := libf2fs_fmt_host_dyn +# The following libf2fs_* are from system/extras/f2fs_utils, +# and do not use code in external/f2fs-tools. +LOCAL_STATIC_LIBRARIES += libf2fs_utils_host libf2fs_dlutils_host +endif + include $(BUILD_HOST_EXECUTABLE) |