[Build-common-hackers] Bug#452361: please include '-fPIC' in standard CFLAGS

Fabian Greffrath greffrath at leat.rub.de
Thu Nov 22 08:04:51 UTC 2007


Package: cdbs
Version: 0.4.50
Severity: wishlist

Dear cdbs-developers,

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:
  http://lintian.debian.org/reports/Tshlib-with-non-pic-code.html

Simply adding
  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.

Thank you!

Cheers,
Fabian





More information about the Build-common-hackers mailing list