From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WQuRs-0000v3-Sk for ptxdist@pengutronix.de; Fri, 21 Mar 2014 09:05:05 +0100 Received: by mail-ee0-f52.google.com with SMTP id e49so1488437eek.39 for ; Fri, 21 Mar 2014 01:04:59 -0700 (PDT) From: Alexander Aring Date: Fri, 21 Mar 2014 09:04:21 +0100 Message-Id: <1395389064-5802-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH 1/4] libgmp: fix issue with missing -fPIC Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring While compiling nettle which depends on libgmp I got the following linking error: .../sysroot-target/usr/lib/libgmp.a(mp_get_fns.o): relocation R_ARM_THM_MOVW_ABS_NC against `__gmp_allocate_func' can not be used when making a shared object; recompile with -fPIC .../sysroot-target/usr/lib/libgmp.a: error adding symbols: Bad value This patch adds a "--with-pic" to the configure argument to solve this problem. Signed-off-by: Alexander Aring --- rules/libgmp.make | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules/libgmp.make b/rules/libgmp.make index 8e3b356..cf36ece 100644 --- a/rules/libgmp.make +++ b/rules/libgmp.make @@ -39,7 +39,8 @@ LIBGMP_ENV := $(CROSS_ENV) LIBGMP_AUTOCONF := \ $(CROSS_AUTOCONF_USR) \ --$(call ptx/endis, PTXCONF_LIBGMP_SHARED)-shared \ - --$(call ptx/endis, PTXCONF_LIBGMP_STATIC)-static + --$(call ptx/endis, PTXCONF_LIBGMP_STATIC)-static \ + --with-pic # ---------------------------------------------------------------------------- # Target-Install -- 1.9.1 -- ptxdist mailing list ptxdist@pengutronix.de