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
This commit is contained in:
parent
9d39823b78
commit
c6db110845
1 changed files with 2 additions and 1 deletions
|
@ -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" ;;
|
||||
|
|
Loading…
Reference in a new issue