mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-25 08:21:17 +02:00
spidermonkey: fix improper error handling
Mixing `local` and `|| die` will never work because the exit status being tested is that of local, not any subcommands that may be involved.
This commit is contained in:
parent
8e7f901639
commit
466fcb3297
@ -56,6 +56,7 @@ src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
local nspr_cflags nspr_libs
|
||||||
cd "${BUILDDIR}" || die
|
cd "${BUILDDIR}" || die
|
||||||
|
|
||||||
# Mozilla screws up the meaning of BUILD, HOST, and TARGET :(
|
# Mozilla screws up the meaning of BUILD, HOST, and TARGET :(
|
||||||
@ -67,8 +68,8 @@ src_configure() {
|
|||||||
HOST_AR="${BUILD_AR}" HOST_RANLIB="${BUILD_RANLIB}"
|
HOST_AR="${BUILD_AR}" HOST_RANLIB="${BUILD_RANLIB}"
|
||||||
|
|
||||||
# Use pkg-config instead of nspr-config to use $SYSROOT
|
# Use pkg-config instead of nspr-config to use $SYSROOT
|
||||||
local nspr_cflags="$(${PKG_CONFIG} --cflags nspr)" || die
|
nspr_cflags="$(${PKG_CONFIG} --cflags nspr)" || die
|
||||||
local nspr_libs="$(${PKG_CONFIG} --libs nspr)" || die
|
nspr_libs="$(${PKG_CONFIG} --libs nspr)" || die
|
||||||
|
|
||||||
econf \
|
econf \
|
||||||
${myopts} \
|
${myopts} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user