diff options
author | Brian Paul <brianp@vmware.com> | 2010-02-18 12:46:48 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-02-18 12:46:48 -0700 |
commit | 205c9659cffb5f5e7632cabd20938038e7ba2c7b (patch) | |
tree | a5377d731e9a1f3571d4fbf8e664e0c339a4bded | |
parent | 979889038ebb5b95b2e609372aaec10fd9da8172 (diff) |
mklib: Teach mklib to fail build if link fails on cygwin
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 551c96979e643b409535afe868c42cac0d2285ad)
-rwxr-xr-x | bin/mklib | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |