Module: Mesa Branch: mesa_7_7_branch Commit: 551c96979e643b409535afe868c42cac0d2285ad URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=551c96979e643b409535afe868c42cac0d2285ad
Author: Jon TURNEY <jon.tur...@dronecode.org.uk> Date: Thu Feb 18 15:13:41 2010 +0000 mklib: Teach mklib to fail build if link fails on cygwin Signed-off-by: Jon TURNEY <jon.tur...@dronecode.org.uk> Signed-off-by: Brian Paul <bri...@vmware.com> --- bin/mklib | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/bin/mklib b/bin/mklib index 3bec160..8471d91 100755 --- a/bin/mklib +++ b/bin/mklib @@ -920,6 +920,11 @@ case $ARCH in # make lib ${LINK} ${OPTS} ${LDFLAGS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS} + # make build fail if link failed + es=$? + if [ "$es" -ne "0" ]; then + exit $es + fi # make usual symlinks ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a # finish up _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit