From patchwork Mon Nov 23 10:03:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Henriksson X-Patchwork-Id: 39042 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 4603EB6F10 for ; Mon, 23 Nov 2009 21:03:58 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756036AbZKWKDq (ORCPT ); Mon, 23 Nov 2009 05:03:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752396AbZKWKDq (ORCPT ); Mon, 23 Nov 2009 05:03:46 -0500 Received: from proxy3.bredband.net ([195.54.101.73]:43543 "EHLO proxy3.bredband.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbZKWKDp (ORCPT ); Mon, 23 Nov 2009 05:03:45 -0500 Received: from ipb1.telenor.se (195.54.127.164) by proxy3.bredband.net (7.3.140.3) id 4AD3E1BA011E44AB for netdev@vger.kernel.org; Mon, 23 Nov 2009 11:03:51 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At1SALnsCUtV4YoEPGdsb2JhbACBTZo2AQEBATe3CYQ8BA X-IronPort-AV: E=Sophos;i="4.47,271,1257116400"; d="scan'208";a="6623139" Received: from c-048ae155.447-1-64736c11.cust.bredbandsbolaget.se (HELO amd64.fatal.se) ([85.225.138.4]) by ipb1.telenor.se with ESMTP; 23 Nov 2009 11:03:50 +0100 Received: from gem by amd64.fatal.se with local (Exim 4.69) (envelope-from ) id 1NCVlw-0003lX-Mt; Mon, 23 Nov 2009 11:03:52 +0100 Date: Mon, 23 Nov 2009 11:03:52 +0100 From: Andreas Henriksson To: shemminger@vyatta.com Cc: netdev@vger.kernel.org, Dmitry Baryshev Subject: [PATCH] iproute2: use -fPIC in lib/ Message-ID: <20091123100352.GA14356@amd64.fatal.se> References: <39840bc80909201712o65b1c84m1bc453bf9d4329a@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <39840bc80909201712o65b1c84m1bc453bf9d4329a@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- 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 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