When a `PREBUILT_STATIC_LIBRARY` uses C++ in its sources then the `.a` file will have a link-time dependency on the C++ runtime libraries. Android NDK r14 will add a way to give this information to the NDK build system by adding a `LOCAL_HAS_CPP` setting to the `Android.mk` file. Add this for exported static libraries that use C++.
29 lines
705 B
Plaintext
29 lines
705 B
Plaintext
LOCAL_PATH.*call my-dir.*
|
|
_IMPORT_PREFIX.*LOCAL_PATH./../..
|
|
|
|
include.*CLEAR_VARS.*
|
|
LOCAL_MODULE.*bar
|
|
LOCAL_SRC_FILES.*_IMPORT_PREFIX./lib.*bar.*
|
|
include.*PREBUILT_STATIC_LIBRARY.*
|
|
|
|
include.*CLEAR_VARS.
|
|
LOCAL_MODULE.*dog
|
|
LOCAL_SRC_FILES.*_IMPORT_PREFIX./lib.*dog.*
|
|
LOCAL_HAS_CPP := true
|
|
include.*PREBUILT_STATIC_LIBRARY.*
|
|
|
|
include.*CLEAR_VARS.*
|
|
LOCAL_MODULE.*car
|
|
LOCAL_SRC_FILES.*_IMPORT_PREFIX./lib.*car.*
|
|
LOCAL_HAS_CPP := true
|
|
include.*PREBUILT_STATIC_LIBRARY.*
|
|
|
|
include.*CLEAR_VARS.*
|
|
LOCAL_MODULE.*foo
|
|
LOCAL_SRC_FILES.*_IMPORT_PREFIX\)/lib.*foo.*
|
|
LOCAL_CPP_FEATURES.*rtti exceptions
|
|
LOCAL_STATIC_LIBRARIES.*car bar dog
|
|
LOCAL_EXPORT_LDLIBS := -lm
|
|
LOCAL_HAS_CPP := true
|
|
include.*PREBUILT_STATIC_LIBRARY.*
|