diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mklib | 5 |
1 files changed, 5 insertions, 0 deletions
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 |