mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/4] libgmp: fix issue with missing -fPIC
@ 2014-03-21  8:04 Alexander Aring
  2014-03-21  8:04 ` [ptxdist] [PATCH 2/4] libgmp: add missing with-gnu-ld Alexander Aring
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Alexander Aring @ 2014-03-21  8:04 UTC (permalink / raw)
  To: ptxdist; +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 <alex.aring@gmail.com>
---
 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

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

end of thread, other threads:[~2014-03-21  8:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-21  8:04 [ptxdist] [PATCH 1/4] libgmp: fix issue with missing -fPIC Alexander Aring
2014-03-21  8:04 ` [ptxdist] [PATCH 2/4] libgmp: add missing with-gnu-ld Alexander Aring
2014-03-21  8:34   ` Michael Olbrich
2014-03-21  8:53     ` Alexander Aring
2014-03-21  8:04 ` [ptxdist] [PATCH 3/4] libgmp: remove targetinstall of static lib Alexander Aring
2014-03-21  8:04 ` [ptxdist] [PATCH 4/4] libgmp: remove LIBGMP_STATIC menu entry Alexander Aring
2014-03-21  8:33   ` Michael Olbrich
2014-03-21  8:31 ` [ptxdist] [PATCH 1/4] libgmp: fix issue with missing -fPIC Michael Olbrich
2014-03-21  8:55   ` Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox