
7 Mar
2009
7 Mar
'09
7:42 p.m.
Vladimir Prus schrieb:
Static libraries were always built without -fPIC and I don't think there was any change in this area. Ok, I wasn't sure either, but I don't remember setting it with Boost 1.37.
The environment is Linux with GCC 4.3.2, on x64.
Any chance you just recently upgraded to an x64 system? On x64, it's all or nothing, you cannot mix PIC and non-PIC code.
No, it was x64 before as well, same system. And I'm sure I used -fPIC on all of my code. Thinking about this, shouldn't be -fPIC enabled on Linux/x64 by default? Otherwise, you can't link Boost statically into a .so without changing the build parameters. Or are there any negative effects by enabling -fPIC? Cheers, Anteru