0

In my Application.mk there is line: APP_STL := gnustl_static

But ndk-build provides to linker path to libgnustl_static right after my module object file in such way:

g++ app.o /android-ndk/..some..folders/libgnustl_static.a (from here my LOCAL_LDFLAGS) -L../external_lib -Bstatic -la1

But liba1 is static library that wants implementation of stl. Thus I shoud pass libgnustl_static.a ageter -la1. How to do this in a right beautiful way without full path /android-ndk/..some..folders/libgnustl_static.a ??

4

1 回答 1

0

我最终将我的 liba1 指定为 PREBUILD_STATIC_LIBRARY(请参阅 Android.mk 文档)

于 2013-06-10T13:12:23.320 回答