Currently is adding "-static" to linker flags. This needs compiling a couple of dependent libraries to get static version of it. It is a little problematic, at least on Gentoo. Also static binary isn't needed for typical usage, if somebody need it then it's easy to add "-static" to env variable LDFLAGS and get static binary. Similar to CFLAGS, it's easier to add "-g" to CFLAGS than negating it by using "-g0". Signed-off-by: Marcin Mirosław <marcin@xxxxxxxx> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9f2773e..e9ca92d 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ PREFIX=/usr INSTALL=install -CFLAGS+=-std=gnu99 -O2 -Wall -g -D_FILE_OFFSET_BITS=64 -I. -LDFLAGS+=-static +CFLAGS:=-std=gnu99 -O2 -Wall -D_FILE_OFFSET_BITS=64 -I. $(CFLAGS) +LDFLAGS+= PKGCONFIG_LIBS="blkid uuid libnih" CFLAGS+=`pkg-config --cflags ${PKGCONFIG_LIBS}` -- 2.7.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html