I have something similar to this:
lib Foo : Foo.cpp ;
lib Bar : Bar.cpp ;
exe Main : Main.cpp Foo Bar ;
I need the part that includes path/to/Foo/Foo.a to be wrapped with -Wl,--whole-archive Foo.a -Wl,--no-whole-archive. Is there a simple method of accomplishing this?