Message ID | 20091123100352.GA14356@amd64.fatal.se |
---|---|
State | Accepted, archived |
Delegated to: | stephen hemminger |
Headers | show |
On Mon, 23 Nov 2009 11:03:52 +0100 Andreas Henriksson <andreas@fatal.se> 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 > > Signed-off-by: Andreas Henriksson <andreas@fatal.se> > > --- > > Resending patch since no comments has been received and it has not > appeared in the iproute git repository. > > > diff --git a/lib/Makefile b/lib/Makefile > index bc270bf..da2f0fc 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 > ok applied
diff --git a/lib/Makefile b/lib/Makefile index bc270bf..da2f0fc 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
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> --- Resending patch since no comments has been received and it has not appeared in the iproute git repository. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html