From: Andreas Henriksson <andreas@fatal.se>
To: shemminger@vyatta.com, netdev@vger.kernel.org
Cc: Dmitry Baryshev <ksquirrel.iv@gmail.com>, 547602@bugs.debian.org
Subject: [PATCH] iproute2: use -fPIC in lib/
Date: Mon, 21 Sep 2009 09:47:51 +0200 [thread overview]
Message-ID: <20090921074751.GA17570@amd64.fatal.se> (raw)
In-Reply-To: <39840bc80909201712o65b1c84m1bc453bf9d4329a@mail.gmail.com>
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
next parent reply other threads:[~2009-09-21 7:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <39840bc80909201712o65b1c84m1bc453bf9d4329a@mail.gmail.com>
2009-09-21 7:47 ` Andreas Henriksson [this message]
2009-11-23 10:03 ` [PATCH] iproute2: use -fPIC in lib/ Andreas Henriksson
2009-12-02 0:18 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090921074751.GA17570@amd64.fatal.se \
--to=andreas@fatal.se \
--cc=547602@bugs.debian.org \
--cc=ksquirrel.iv@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.