diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-31 07:56:56 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-31 07:57:17 +0000 |
commit | 10a57644d5a354baac5d1018fe2dbb34342a14fd (patch) | |
tree | 5f230dda4683ea91e1125c4e02bac1b65d6a52dc /dev-libs/gmp/metadata.xml | |
parent | dev-python/pyparsing: version bump to 2.4.6 (diff) | |
download | gentoo-10a57644d5a354baac5d1018fe2dbb34342a14fd.tar.gz gentoo-10a57644d5a354baac5d1018fe2dbb34342a14fd.tar.bz2 gentoo-10a57644d5a354baac5d1018fe2dbb34342a14fd.zip |
dev-libs/gmp: add USE=pic for static libraries, bug #707332
gmp makes a decision to use PIC or non-PIC assemply at
./configure time instead of (typical) build time.
On top of that non-PIC assembly also has TEXTRELs in it
which musl can't handle and crashes binaries at relocation
setup time. For gmp is it relevant only for static linking.
The change adds USE=pic to force static libraries to generate
assembly code without TEXTRELs.
Reported-by: Andrew Aladjev
Closes: https://bugs.gentoo.org/707332
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-libs/gmp/metadata.xml')
-rw-r--r-- | dev-libs/gmp/metadata.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dev-libs/gmp/metadata.xml b/dev-libs/gmp/metadata.xml index 84e19205350d..2b4236a14c6c 100644 --- a/dev-libs/gmp/metadata.xml +++ b/dev-libs/gmp/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <use> <flag name="asm">Enable use of hand optimized assembly routines (faster execution)</flag> + <flag name="pic">Force static libraries to be built as PIC to avoid TEXTRELs.</flag> </use> <upstream> <remote-id type="cpe">cpe:/a:gmplib:gmp</remote-id> |