diff --git a/srcpkgs/polyml/template b/srcpkgs/polyml/template index 3c1ff9cb662..9cc75eafbc5 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