From 6c1e581d21e0a0aa50700b379d0e9363f8e1db79 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 14 May 2017 23:12:22 +0200 Subject: [PATCH] polyml: explain nopie issue better. --- srcpkgs/polyml/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/polyml/template b/srcpkgs/polyml/template index 3c1ff9cb66..9cc75eafbc 100644 --- a/srcpkgs/polyml/template +++ b/srcpkgs/polyml/template @@ -5,7 +5,12 @@ revision=1 build_style=gnu-configure configure_args="--with-system-libffi --enable-shared" case "$XBPS_TARGET_MACHINE" in - i686-musl|x86_64-musl) nopie=yes ;; # crash in do_relocs else + i686-musl|x86_64-musl) + # musl doesn't allow writing to .rodata and .text during + # relocation, but polyexport.o contains DT_TEXTREL + # since libpolyml/elfexport.cpp only creates absolute + # relocations. Drop PIE and do relocations at link time. + nopie=yes;; i686*|x86_64*) ;; *) configure_args+=" --disable-native-codegeneration" ;; esac