From: Tim St. Clair (timothysc_at_[hidden])
Date: 2008-04-02 15:06:01
In creating a monolith.so, is there a way to tack the <linkflags> on the
front vs. the end? Every time I use this option it appends to the end.
--whole-archive states :
For each archive mentioned on the command line *after* the
--whole-archive option, include every object file in the archive in the
than searching the archive for the required object files. This
is normally used to turn an archive file into a shared library, forcing
object to be included in the resulting shared library. This
option may be used more than once.
Two notes when using this option from gcc: First, gcc doesn't
know about this option, so you have to use -Wl,-whole-archive. Second,
forget to use -Wl,-no-whole-archive after your list of
archives, because gcc will add its own list of archives to your link and you
want this flag to affect those as well.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk