From c6db110845ba658ff18f630b48d16c0e2417be74 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 28 Jan 2019 11:10:33 +0100 Subject: [PATCH] mozjs60: request stack size on newer musl systems since 1.1.21 musl supports reading the minimal stack size from the PT_GNU_STACK elf header[1]. As mozjs tends to build larger stacks and applications using mozjs aren't RAM friendly anyway we set this header in the library and prevent patching the applications itself. [1] https://git.musl-libc.org/cgit/musl/commit/?id=7b3348a98c139b4b4238384e52d4b0eb237e4833 --- srcpkgs/mozjs60/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/mozjs60/template b/srcpkgs/mozjs60/template index 1dc90079f7e..ca9ad8519b7 100644 --- a/srcpkgs/mozjs60/template +++ b/srcpkgs/mozjs60/template @@ -1,7 +1,7 @@ # Template file for 'mozjs60' pkgname=mozjs60 version=60.4.0 -revision=3 +revision=4 wrksrc="firefox-${version}" build_wrksrc=js/src build_style=gnu-configure @@ -14,6 +14,7 @@ homepage="https://www.mozilla.org/js/" distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz" checksum=205258548c3f245d42377b338f0db1272df39489d61305c39b83e52750ebff85 patch_args="-Np1" +LDFLAGS+=" -Wl,-z,stack-size=1048576" case "$XBPS_TARGET_MACHINE" in mips*|armv[56]*) makedepends+=" libatomic-devel" ; LDFLAGS+=" -latomic" ;;