termux-packages/x11-packages/openttd/config.lib.patch

28 lines
1.0 KiB
Diff

diff -uNr OpenTTD-1.10.1/config.lib OpenTTD-1.10.1.mod/config.lib
--- OpenTTD-1.10.1/config.lib 2020-04-13 20:39:51.000000000 +0300
+++ OpenTTD-1.10.1.mod/config.lib 2020-04-27 17:34:56.453223975 +0300
@@ -1579,10 +1579,6 @@
fi
fi
- if [ "$os" != "CYGWIN" ] && [ "$os" != "HAIKU" ] && [ "$os" != "OPENBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "OSX" ] && [ "$os" != "OS2" ]; then
- LIBS="$LIBS -lpthread"
- fi
-
if [ "$os" != "CYGWIN" ] && [ "$os" != "HAIKU" ] && [ "$os" != "MINGW" ]; then
LIBS="$LIBS -lc"
fi
@@ -2608,10 +2604,10 @@
log 2 "detecting $2"
if [ "$1" = "1" ] || [ "$1" = "" ] || [ "$1" = "2" ]; then
- eval "$2=`ls -1 /usr/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
+ eval "$2=`ls -1 @TERMUX_PREFIX@/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
eval "res=\$$2"
if [ -z "$res" ]; then
- log 2 " trying /usr/include/$4$5... no"
+ log 2 " trying @TERMUX_PREFIX@/include/$4$5... no"
eval "$2=`ls -1 /usr/local/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
fi
eval "res=\$$2"