From: Andreas Henriksson Date: Mon, 23 Nov 2009 10:03:52 +0000 (+0100) Subject: iproute2: use -fPIC in lib/ X-Git-Tag: v2.6.31~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6837f771edf49d5b19c12a2d2760234e86241c48;p=thirdparty%2Fiproute2.git iproute2: use -fPIC in lib/ The static libnetlink.a library is exposed to other users in Debian via the "iproute-dev" package. Apparently people are interested in using it in their shared libraries and would like to see the code be position independent. Patch below makes the code under lib/ build with -fPIC. See http://bugs.debian.org/547602 Signed-off-by: Andreas Henriksson --- diff --git a/lib/Makefile b/lib/Makefile index bc270bff3..da2f0fcbe 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,3 +1,4 @@ +CFLAGS += -fPIC UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o