projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9798890
)
mklib: Teach mklib to fail build if link fails on cygwin
author
Brian Paul
<brianp@vmware.com>
Thu, 18 Feb 2010 19:46:48 +0000
(12:46 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 18 Feb 2010 19:46:48 +0000
(12:46 -0700)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit
551c96979e643b409535afe868c42cac0d2285ad
)
bin/mklib
patch
|
blob
|
history
diff --git
a/bin/mklib
b/bin/mklib
index 9e6e46de8b9d9f888a05113127b5d2c31c2cc147..2ef902287d2c30bc23507627b1c535dd14c44ce7 100755
(executable)
--- 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