From: Brian Paul Date: Thu, 18 Feb 2010 19:46:48 +0000 (-0700) Subject: mklib: Teach mklib to fail build if link fails on cygwin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=205c9659cffb5f5e7632cabd20938038e7ba2c7b;p=mesa.git mklib: Teach mklib to fail build if link fails on cygwin Signed-off-by: Jon TURNEY Signed-off-by: Brian Paul (cherry picked from commit 551c96979e643b409535afe868c42cac0d2285ad) --- diff --git a/bin/mklib b/bin/mklib index 9e6e46de8b9..2ef902287d2 100755 --- a/bin/mklib +++ b/bin/mklib @@ -977,6 +977,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