]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iproute2: use -fPIC in lib/
authorAndreas Henriksson <andreas@fatal.se>
Mon, 23 Nov 2009 10:03:52 +0000 (11:03 +0100)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Wed, 2 Dec 2009 00:17:59 +0000 (16:17 -0800)
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 <andreas@fatal.se>
lib/Makefile

index bc270bff30fde01ba0191e630bae4db1c7cd9a98..da2f0fcbe85b0dead52e2e526bd864ed2ab1d121 100644 (file)
@@ -1,3 +1,4 @@
+CFLAGS += -fPIC
 
 UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o