netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iproute2: use -fPIC in lib/
       [not found] <39840bc80909201712o65b1c84m1bc453bf9d4329a@mail.gmail.com>
@ 2009-09-21  7:47 ` Andreas Henriksson
  2009-11-23 10:03 ` Andreas Henriksson
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Henriksson @ 2009-09-21  7:47 UTC (permalink / raw)
  To: shemminger, netdev; +Cc: Dmitry Baryshev, 547602

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>

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
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] iproute2: use -fPIC in lib/
       [not found] <39840bc80909201712o65b1c84m1bc453bf9d4329a@mail.gmail.com>
  2009-09-21  7:47 ` [PATCH] iproute2: use -fPIC in lib/ Andreas Henriksson
@ 2009-11-23 10:03 ` Andreas Henriksson
  2009-12-02  0:18   ` Stephen Hemminger
  1 sibling, 1 reply; 3+ messages in thread
From: Andreas Henriksson @ 2009-11-23 10:03 UTC (permalink / raw)
  To: shemminger; +Cc: netdev, Dmitry Baryshev

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
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iproute2: use -fPIC in lib/
  2009-11-23 10:03 ` Andreas Henriksson
@ 2009-12-02  0:18   ` Stephen Hemminger
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2009-12-02  0:18 UTC (permalink / raw)
  To: Andreas Henriksson; +Cc: netdev, Dmitry Baryshev

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

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-02  0:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <39840bc80909201712o65b1c84m1bc453bf9d4329a@mail.gmail.com>
2009-09-21  7:47 ` [PATCH] iproute2: use -fPIC in lib/ Andreas Henriksson
2009-11-23 10:03 ` Andreas Henriksson
2009-12-02  0:18   ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).