Hi,
I have a project which builds shared objects and executables on linux. The
goal is to have the library as PIC and the executable as PIE. PIC seems not a
problem as cmake already does it.
There exist a blacklist for architectures which doesn't support PIE well yet
(hppa, m68k, mips,
Not sure how you're setting the LDFLAGS, but if you append -fPIE -pie to
this variable, it should be used only for executables.
http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_EXE_LINKER_FLAGS
There is an undocumented peer to this variable, something like
Ryan Pavlik wrote:
Not sure how you're setting the LDFLAGS, but if you append -fPIE -pie to
this variable, it should be used only for executables.
http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_EXE_LINKER_F
LAGS
There is an undocumented peer to this variable, something