Skip to contentSkip to conversation

iproute2: use -fPIC in lib/

PATCH New Andreas Henriksson 2 participants 3 messages Sep 21, 2009 – Dec 2, 2009 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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

lib/Makefile +1 -0
index bc270bf..da2f0fc 100644
@@ -1,3 +1,4 @@
+CFLAGS += -fPIC
 
 UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o
 
#2 lore raw

PATCH 1/1 iproute2: use -fPIC in lib/

In reply to a message not in the archive

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

---

Resending patch since no comments has been received and it has not appeared in the iproute git repository.

lib/Makefile +1 -0
index bc270bf..da2f0fc 100644
@@ -1,3 +1,4 @@
+CFLAGS += -fPIC
 
 UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o
 
#3 lore raw
Quoted 21 lines · On Mon, 23 Nov 2009 11:03:52 +0100 Andreas Henriksson <[email protected]> wrote:

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

---

Resending patch since no comments has been received and it has not appeared in the iproute git repository.

lib/Makefile +0 -0
index bc270bf..da2f0fc 100644

lib/Makefile line 4

Quoted 4 lines
lib/Makefile +1 -0
@@ -1,3 +1,4 @@
+CFLAGS += -fPIC
 
 UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o
 

ok applied