summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-04-10 10:49:05 -0700
committerJosh Triplett <josh@freedesktop.org>2008-04-13 11:44:22 -0700
commitce563f51dd0a4363c47bd2c445cef00f7b40228d (patch)
treede787d09ca4003ce792c72ba6c0b4ff6513929a1
parent8aaa98c62fa170f1de3b3870dbbebd111ebeeaf3 (diff)
Exit out if the compile returns an error.
-rw-r--r--dolt.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/dolt.m4 b/dolt.m4
index 390e299..da8c0c7 100644
--- a/dolt.m4
+++ b/dolt.m4
@@ -68,7 +68,7 @@ if test ! -d "$libobjdir" ; then
fi
pic_object="$libobjdir/$objbase.o"
args@<:@$objarg@:>@="$pic_object"
-"${args@<:@@@:>@}" -fPIC -DPIC
+"${args@<:@@@:>@}" -fPIC -DPIC || exit $?
__DOLTCOMPILE__EOF__
fi
@@ -81,11 +81,11 @@ args@<:@$objarg@:>@="$non_pic_object"
__DOLTCOMPILE__EOF__
if test x$enable_shared = xyes; then
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
-"${args@<:@@@:>@}" >/dev/null 2>&1
+"${args@<:@@@:>@}" >/dev/null 2>&1 || exit $?
__DOLTCOMPILE__EOF__
else
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
-"${args@<:@@@:>@}"
+"${args@<:@@@:>@}" || exit $?
__DOLTCOMPILE__EOF__
fi
fi