diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-02-19 22:38:57 +0000 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-09-01 08:48:00 -0600 |
commit | 8fee182e8c65625677c10137e12775db63e909a2 (patch) | |
tree | ee691c9ab8619d500299d10737fca7819a0ce6b0 /bin | |
parent | 63b80f8cc181ded154668e60ac2cf0a6a82d118f (diff) | |
download | external_mesa3d-8fee182e8c65625677c10137e12775db63e909a2.zip external_mesa3d-8fee182e8c65625677c10137e12775db63e909a2.tar.gz external_mesa3d-8fee182e8c65625677c10137e12775db63e909a2.tar.bz2 |
Cygwin: Have mklib exit with error code if link fails
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mklib | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -938,7 +938,7 @@ case $ARCH in OPTS=${ALTOPTS} fi rm -f ${LIBNAME} - ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} + ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} || exit $? FINAL_LIBS=${LIBNAME} else CYGNAME="cyg${LIBNAME}" # prefix with "cyg" @@ -979,12 +979,7 @@ case $ARCH in rm -f ${LIBNAME}.a # 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 + ${LINK} ${OPTS} ${LDFLAGS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS} || exit $? # make usual symlinks ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a # finish up |