nim: fix compatibility with Termux
Enables linking with libandroid-glob. Fixes https://github.com/termux/termux-packages/issues/5904.
This commit is contained in:
parent
8904ad278d
commit
1bd2dd3a29
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Nim programming language compiler"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_LICENSE_FILE="copying.txt"
|
||||
TERMUX_PKG_VERSION=1.2.6
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://nim-lang.org/download/nim-$TERMUX_PKG_VERSION.tar.xz
|
||||
TERMUX_PKG_SHA256=df88ea712e96ea847b610d56ef69f46ba587002052a46bf03c5c62affac7657e
|
||||
TERMUX_PKG_DEPENDS="clang, git, libandroid-glob"
|
||||
|
19
packages/nim/config-nim.cfg
Normal file
19
packages/nim/config-nim.cfg
Normal file
@ -0,0 +1,19 @@
|
||||
diff -uNr nim-1.2.6/config/nim.cfg nim-1.2.6.mod/config/nim.cfg
|
||||
--- nim-1.2.6/config/nim.cfg 2020-07-29 15:16:33.000000000 +0300
|
||||
+++ nim-1.2.6.mod/config/nim.cfg 2020-10-11 22:43:50.962181942 +0300
|
||||
@@ -136,13 +136,13 @@
|
||||
|
||||
@if android:
|
||||
cc = clang
|
||||
- @if termux:
|
||||
+# @if termux:
|
||||
gcc.options.linker = "-landroid-glob"
|
||||
gcc.cpp.options.linker = "-landroid-glob"
|
||||
clang.options.linker = "-landroid-glob"
|
||||
clang.cpp.options.linker = "-landroid-glob"
|
||||
tcc.options.linker = "-landroid-glob"
|
||||
- @end
|
||||
+# @end
|
||||
@end
|
||||
|
||||
@if nintendoswitch:
|
Loading…
x
Reference in New Issue
Block a user