From c8d2e065aaf00aae4985931cfbca4c077b8aa065 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 19 Apr 2021 15:41:58 +0200 Subject: [PATCH] libpbuild: handle error if make fails while compiling or installing --- Pmodules/libpbuild.bash | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index 07fee3c..336b9f6 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -586,7 +586,10 @@ pbuild::pre_compile() { } pbuild::compile() { - make -j${JOBS} + make -j${JOBS} || \ + std::die 3 \ + "%s " "${module_name}/${module_version}:" \ + "compilation failed!" } pbuild::post_compile() { @@ -598,7 +601,10 @@ pbuild::pre_install() { } pbuild::install() { - make install + make install || \ + std::die 3 \ + "%s " "${module_name}/${module_version}:" \ + "compilation failed!" } pbuild::install_shared_libs() {