Drop -fpic; it hurts performance and we don't build libsparse.so by default
commit0d4adf3564521f412a90b6267fe5e245d2a8258c
authorJosh Triplett <josh@freedesktop.org>
Mon, 30 Jul 2007 07:40:20 +0000 (30 00:40 -0700)
committerJosh Triplett <josh@freedesktop.org>
Mon, 30 Jul 2007 07:40:20 +0000 (30 00:40 -0700)
tree7f3cfd01e73b04af5df3bbd48c8866119d3cd152
parent470804edd6bdc8eacf2d29adfd046ed26e59597c
Drop -fpic; it hurts performance and we don't build libsparse.so by default

Sparse doesn't have a stable shared library interface, and doesn't build
libsparse.so by default.  However, it used -fpic, which incurred a noticeable
performance hit.  Remove -fpic from the default CFLAGS, and add a comment near
the definition of LIBS about adding it back if building a shared library.  You
probably want to build Sparse twice if you want a shared library: once without
-fpic to build the Sparse tools, and again with -fpic to build the shared
library.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Makefile