gentoo-ebuilds/games-board/xscrabble/files/xscrabble-2.10-ranlib.patch
Alexey Sokolov 9ac2cea9de
games-board/xscrabble: fix build with gcc 15
Closes: https://bugs.gentoo.org/884779
Closes: https://bugs.gentoo.org/870793
Closes: https://bugs.gentoo.org/944266
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-09 01:38:48 +00:00

13 lines
448 B
Diff

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
"