diff options
author | Eric Anholt <eric@anholt.net> | 2008-04-10 10:49:05 -0700 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2008-04-13 11:44:22 -0700 |
commit | ce563f51dd0a4363c47bd2c445cef00f7b40228d (patch) | |
tree | de787d09ca4003ce792c72ba6c0b4ff6513929a1 | |
parent | 8aaa98c62fa170f1de3b3870dbbebd111ebeeaf3 (diff) |
Exit out if the compile returns an error.
-rw-r--r-- | dolt.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |