[PATCH] Use darwin's -force_load flag if available for whole_archive_flag_spec

2009-09-06 Thread Peter O'Gorman
Hi, Well, Mac OS X 10.6 has been released, and its linker now has support for an option similar to --whole-archive. -force_load libfoo.a will load all members of libfoo.a into the output. -force_load lib can be given multiple times on the command line. This patch (and a test case that checks

Re: Make -Wc,foo behave like -Xcompiler foo in link mode.

2009-09-06 Thread Peter Rosin
Hi Ralf, Den 2009-09-06 11:44 skrev Ralf Wildenhues: * Peter Rosin wrote on Fri, Sep 04, 2009 at 10:31:14PM CEST: If the test is going to be good enough on w32 I don't know. For gcc it should behave just as on any unix, so what's left is my msvc branch where -Wl, isn't supported ATM so I

Re: [PATCH] Use darwin's -force_load flag if available for whole_archive_flag_spec

2009-09-06 Thread Ralf Wildenhues
Hi Peter, * Peter O'Gorman wrote on Sun, Sep 06, 2009 at 05:28:52PM CEST: Well, Mac OS X 10.6 has been released, and its linker now has support for an option similar to --whole-archive. -force_load libfoo.a will load all members of libfoo.a into the output. -force_load lib can be given

Re: Make -Wc,foo behave like -Xcompiler foo in link mode.

2009-09-06 Thread Peter O'Gorman
On Sep 6, 2009, at 2:44 AM, Ralf Wildenhues wrote: Add testsuite exposure for passing of compiler and linker flags. * tests/flags.at (passing flags through libtool): New file, new test, for bug fixed in previous commit. * Makefile.am (TESTSUITE_AT): Add tests/flags.at. + +for

Re: [PATCH] Use darwin's -force_load flag if available for whole_archive_flag_spec

2009-09-06 Thread Peter O'Gorman
On Sep 6, 2009, at 12:29 PM, Ralf Wildenhues wrote: Hi Peter, * Peter O'Gorman wrote on Sun, Sep 06, 2009 at 05:28:52PM CEST: Well, Mac OS X 10.6 has been released, and its linker now has support for an option similar to --whole-archive. -force_load libfoo.a will load all members of