why must we use "-static" on linking standalone executable ?

14 views
Skip to first unread message

Ran Shalit

unread,
Feb 13, 2017, 11:34:53 AM2/13/17
to android-platform
Hello,

On trying to build some tool with my cross compiler, it refused to run on android target.
Only after adding "-static" to linker it could run.

Does anyone understands why ?
Thank you,
Ran

shivpratap chauhan

unread,
Feb 14, 2017, 10:42:09 AM2/14/17
to android-...@googlegroups.com
Can you please send output for following command?

#arm-linux-androideabi-readelf -e <shared library linked without -static>


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platform+unsubscribe@googlegroups.com.
To post to this group, send email to android-platform@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages