Re: -all_load for non-OSX?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12 April 2014 16:18, Kevin Ingwersen wrote:
> Hey.
> I need to bundle all objects from a static library into a binary. I have only worked on OS X so far and know that I can use -all_load…but what is the equivalent on Linux?

You need the --whole-archive linker option, see
https://sourceware.org/binutils/docs/ld/Options.html#index-g_t_002d_002dwhole_002darchive-265





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux