summaryrefslogtreecommitdiff
path: root/games-board/xscrabble/files/xscrabble-2.10-ranlib.patch
blob: 95bdc85262dbccf42aad908e45a3bcd064f31306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Fail build if compilation failed, use ranlib

--- a/build
+++ b/build
@@ -36,7 +36,7 @@ if test "$1" = "bin" ; then
 #define RULES_FILE \"$LIBDIR/en/scrabble_rules\"
 " > src/config.h
   xmkmf -a
-  make CC="${CC}" CCOPTIONS="${CFLAGS}" LOCAL_LDFLAGS="${LDFLAGS}"
+  make CC="${CC}" AR="${AR} cq" RANLIB="${RANLIB}" CCOPTIONS="${CFLAGS}" LOCAL_LDFLAGS="${LDFLAGS}" || exit 1
   echo "
 Now, type './build install' to install programs in $BINDIR
 "