[Build-common-hackers] Bug#452361: please include '-fPIC' in standard CFLAGS
greffrath at leat.rub.de
Thu Nov 22 08:04:51 UTC 2007
I have observed several times that shared libraries build without PIC
code if the compiler is not run with the optional '-fPIC'. Lintian then
throws the following error:
CFLAGS += -fPIC
in debian/rules often solves the problem.
I don't know if this option is dangerous for static objects, but if not,
please consider including it in the standard CFLAGS.
More information about the Build-common-hackers