I am using gn as my build system, and I want to some target deps another with " -whole-archive", but I found seem no way to do that?
What I need is something like:
clang++ -o libmy.so -Wl,--start-group libA.a libB.a -Wl,-whole-archive libC.a -Wl,-no-whole-archive -Wl,--end-group
- libA.a and libB.a in --start-group and --end-group
- libC.a in -whole-archive and -no-whole-archive
Thanks