DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1875
Version: 1.1-current
fltk-config --compile runs both the compiler and Rez under OSX, even when
the compilation fails. Rez will shadow the return code of the compiler and
create an empty executable instead. Kills any build system based on
--compile.
Attached patch validates the exit status before using Rez.
Link: http://www.fltk.org/str.php?L1875
Version: 1.1-current
Index: fltk-config.in
===================================================================
--- fltk-config.in (revision 6027)
+++ fltk-config.in (working copy)
@@ -271,6 +271,12 @@
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
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs