This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make Stap compatible with Android



On 01.05.2018 23:01, David Smith wrote:
> 
> Either I'm having trouble seeing or you are. The original code had an
> empty AC_CHECK_LIB 2nd argument. The new code does not. If I'm reading
> the new code correctly, -lelf will get added twice to staprun_LIBS in
> the non-android case.
Oh, that one. I'm sorry. I'll remove it.
> 
>>> 3) I'm also not sure about the approach you are taking here. You seem
>>> to assume that android will *never* have an elfutils 0.142+. Why don't
>>> you test the elfutils version and change the configure macro from
>>> HAVE_ANDROID to something like HAVE_ANDROID_OLD_ELFUTILS (feel free to
>>> use a better name) if the elfutils version isn't new enough?
>> As far as I know, neither my MentorGraphics compiler nor the Android
>> EABI compiler
>> (https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7)
>> have support for elfutils at all.
> 
> Have you tried downloading elfutils source from
> https://sourceware.org/elfutils/ and using the
> --with-elfutils=ELFUTILS_SRC_DIR systemtap configure option?
> 
Yes, I tried it. The --host option is not passed to the elfutils
configure script. The elfutils are build for the host architecture,
e.g., x86_64 in my case.

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]