diff --git a/srcpkgs/dmd/template b/srcpkgs/dmd/template index 2243abdfb38..49e65da3067 100644 --- a/srcpkgs/dmd/template +++ b/srcpkgs/dmd/template @@ -22,10 +22,11 @@ conf_files="/etc/dmd.conf" provides="d-compiler-${version}_${revision}" conflicts="dmd-bootstrap" nopie=yes +LDFLAGS="-lpthread" case "$XBPS_TARGET_MACHINE" in x86_64*) _archbits=64;; - i686*) _archbits=32;; + i686) _archbits=32;; *) broken="unsupported arch upstream";; esac @@ -39,6 +40,9 @@ post_extract() { pre_configure() { case "$XBPS_TARGET_MACHINE" in *-musl) patch -p0 < ${FILESDIR}/musl.patch + if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then + patch -p0 < ${FILESDIR}/i686-musl.patch + fi esac }