LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_AUTOTOOLS_VARS) | |
# $(1): autotools build dir | |
# $(2): output dir for module | |
# $(3): install dir for module | |
# $(4): export_includes file | |
# $(5): export_pkgconfig file | |
define libffi_cb | |
cd $(2) && \ | |
ln -sf libffi.so libffi.so.6 | |
cd $(3) && \ | |
ln -sf libffi.so libffi.so.6 | |
endef | |
LOCAL_MODULE := libffi | |
LOCAL_AUTOTOOLS_POST_INSTALL_CALLBACK := libffi_cb | |
include $(BUILD_AUTOTOOLS_SHARED_LIBRARY) |