From: Martin Mares Date: Fri, 21 Nov 2008 19:54:00 +0000 (+0100) Subject: Added an ability to build static position-independent version of libucw. X-Git-Tag: holmes-import~142 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=de232cfe43786205ff39a7a80fe43275221281d3;p=libucw.git Added an ability to build static position-independent version of libucw. This is useful when you want to link libucw statically to a shared library. --- diff --git a/ucw/Makefile b/ucw/Makefile index 8f2be3f6..27d0635f 100644 --- a/ucw/Makefile +++ b/ucw/Makefile @@ -76,6 +76,7 @@ include $(s)/ucw/doc/Makefile LIBUCW_MOD_PATHS=$(addprefix $(o)/ucw/,$(LIBUCW_MODS)) $(o)/ucw/libucw.a: $(addsuffix .o,$(LIBUCW_MOD_PATHS)) +$(o)/ucw/libucw-pic.a: $(addsuffix .oo,$(LIBUCW_MOD_PATHS)) $(o)/ucw/libucw.so: $(addsuffix .oo,$(LIBUCW_MOD_PATHS)) $(o)/ucw/hashfunc.o $(o)/ucw/hashfunc.oo: CFLAGS += -funroll-loops