summaryrefslogtreecommitdiff
path: root/fltk-config.in
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-02-20 18:10:13 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-02-20 18:10:13 +0000
commitab406a8e79dcafa3337fbe6f000fba50945460c6 (patch)
tree29ccc4a2178f50762d75b2abc442df29e4124f37 /fltk-config.in
parentdc0ab1d06c3db76e8c1fd311b95abee40808864b (diff)
STR 1875: fixed missing return value from 'fltk-config' for compiles that require a post run
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fltk-config.in')
-rwxr-xr-xfltk-config.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/fltk-config.in b/fltk-config.in
index fef38af66..dcb971af2 100755
--- a/fltk-config.in
+++ b/fltk-config.in
@@ -271,6 +271,12 @@ if test -n "$compile"; then
echo $CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o $prog $compile $LDSTATIC
$CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o $prog $compile $LDSTATIC
+
+ # stop after compilation in case of errors
+ err=$?
+ if test $err != 0; then
+ exit $err
+ fi
fi
if test -n "$post" -a "$POSTBUILD" != ":"; then