From patchwork Wed Jun 5 14:02:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markos Chandras X-Patchwork-Id: 249071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 641492C007A for ; Thu, 6 Jun 2013 00:03:32 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 48241A0156; Wed, 5 Jun 2013 14:03:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4jFWG23zZZ1y; Wed, 5 Jun 2013 14:03:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 55A31A014F; Wed, 5 Jun 2013 14:03:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D22918F7B0 for ; Wed, 5 Jun 2013 14:03:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 868528C6B9 for ; Wed, 5 Jun 2013 14:03:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id innk82XvJcG8 for ; Wed, 5 Jun 2013 14:03:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from multi.imgtec.com (multi.imgtec.com [194.200.65.239]) by whitealder.osuosl.org (Postfix) with ESMTPS id 930AA8C9D8 for ; Wed, 5 Jun 2013 14:02:47 +0000 (UTC) From: Markos Chandras To: Date: Wed, 5 Jun 2013 15:02:36 +0100 Message-ID: <1370440956-8000-1-git-send-email-markos.chandras@gmail.com> X-Mailer: git-send-email 1.8.2.1 MIME-Version: 1.0 X-SEF-Processed: 7_3_0_01192__2013_06_05_15_02_45 Subject: [Buildroot] [PATCH] wvstreams: Build bundled argp library with -fPIC X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Markos Chandras Fixes linking problems on MIPS. Signed-off-by: Markos Chandras --- package/wvstreams/wvstreams-0006-argp-fpic.patch | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/wvstreams/wvstreams-0006-argp-fpic.patch diff --git a/package/wvstreams/wvstreams-0006-argp-fpic.patch b/package/wvstreams/wvstreams-0006-argp-fpic.patch new file mode 100644 index 0000000..b4cf1d2 --- /dev/null +++ b/package/wvstreams/wvstreams-0006-argp-fpic.patch @@ -0,0 +1,28 @@ +Build argp object files with -fPIC. + +The argp bundled dependency is linked to the libwvutils.so shared library. +MIPS will refuce to link a non-PIC library with a shared one. + +We fix this problem by building the argp source files using -fPIC since +the libargp static library will only be used to link to libwvutils.so +as instructed by the following rule in the root Makefile: + +ifeq ($(USE_WVSTREAMS_ARGP),1) + utils/wvargs.o-CPPFLAGS += -Iargp + libwvutils.so-LIBS += -Largp -largp + +Signed-off-by: Markos Chandras + +Index: wvstreams-4.6.1/argp/Makefile.in +=================================================================== +--- wvstreams-4.6.1.orig/argp/Makefile.in ++++ wvstreams-4.6.1/argp/Makefile.in +@@ -137,7 +137,7 @@ AUTOMAKE = @AUTOMAKE@ + AWK = @AWK@ + CC = @CC@ + CCDEPMODE = @CCDEPMODE@ +-CFLAGS = @CFLAGS@ ++CFLAGS = @CFLAGS@ -fPIC + CPP = @CPP@ + CPPFLAGS = @CPPFLAGS@ + CYGPATH_W = @CYGPATH_W@