Menu

Force inclusion of certain libraries

Help
2010-07-09
2013-05-13
  • Wim Heirman

    Wim Heirman - 2010-07-09

    Hi,

    Is it possible to force the inclusion of a certain library? Something like the "gcc -u" option, where you can add certain symbols that will be treated as undefined, which causes the library that defines them to be included in the final executable.

    Thanks,
    Wim

     
  • Wim Heirman

    Wim Heirman - 2010-07-09

    Thanks. I've tried this, but it doesn't seem to help. The problem is that, in my case, the library I want to add isn't referenced from anywhere (it will be, by a simulator under which I'll run the binary). And since this library isn't really needed, it's doesn't seem to be added by statifier either.

    Regards,
    Wim

     
  • Valery Reznic

    Valery Reznic - 2010-07-11

    Could you post command that you used to statify your executable ?

     
  • Wim Heirman

    Wim Heirman - 2010-07-20

    Sorry, it does work now (with -set=LD_PRELOAD=), I must have done something wrong before. Thanks!

     
  • Valery Reznic

    Valery Reznic - 2010-07-20

    You are welcome

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.