To unsubscribe from this group and stop receiving emails from it, send an email to gn-dev+un...@chromium.org.ThanksIvan
I would try doing this with a default config that adds fPIC, and then in executable targets remove that config and pass fPIE instead.This means that your shared libraries are always fPIC, but in return you get a much simpler (and faster -- need to build shared libs just once) build.
Thanks a lot! For now I've decided to go toolchains route as I think it can simplify other configs, and things almost go well: in https://dart-review.googlesource.com/c/sdk/+/392661/comment/1503fa7f_23e76284/ I've create a template which either defines a group in a regular toolchain, or an actual shared library in a shared toolchain, and I've hit an issue with a different output dir David mentioned.David, could you please point out where hardlinking happens in Fuchsia build rules, did you mean https://cs.opensource.google/fuchsia/fuchsia/+/86dcff138700c76441db8592b39de7b3997a0050:build/config/BUILDCONFIG.gn;l=3156-3158?