[Lldb-commits] [PATCH] Default to linking lldb-server statically for Android.

Chaoren Lin chaorenl at google.com
Wed Jul 1 08:57:22 PDT 2015


-pie is not compatible with -static. lldb-server can work on any API if
linked statically.
On Jul 1, 2015 02:17, "Tamas Berghammer" <tberghammer at google.com> wrote:

> ================
> Comment at: cmake/platforms/Android.cmake:98-102
> @@ -97,7 +101,2 @@
>
> -# PIE is required for API 21+ so we enable it
> -# unfortunately, it is not supported before API 14 so we need to do
> something else there
> -# see http://llvm.org/pr23457
> -set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -pie -fPIE" )
> -
>  # linker flags
> ----------------
> Who will specify the "-pie" flag for API 21+? Without it lldb-server won't
> work in those API levels.
>
> http://reviews.llvm.org/D10858
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150701/bdfb8228/attachment.html>


More information about the lldb-commits mailing list