I’ve a project where I’m building object files without-fPIC for static library libx.a and with -fPIC for dynamic library libx.so .Now I’ve to compile both source files cpp or c twice and there are 1000s of them.
Now can I build just the -fPIC object files once for both static and dynamic library ?
Do you see any pitfalls with above approach ?
Regards,
Navin