You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-arcade/netris/files/netris-0.52-tinfo.patch

15 lines
397 B

diff --git a/Configure b/Configure
index a8bf8f6..3fa9097 100755
--- a/Configure
+++ b/Configure
@@ -80,6 +80,9 @@ for lib in -lcurses -lncurses; do
LFLAGS="$lib"
fi
done
+if $CC $CFLAGS $LEXTRA test.c -ltinfo > /dev/null 2>&1; then
+ LFLAGS="$LFLAGS -ltinfo"
+fi
for lib in -lsocket -lnsl -ltermcap; do
if $CC $CFLAGS $LEXTRA test.c $lib > /dev/null 2>&1; then
LFLAGS="$LFLAGS $lib"