Android support: put Termux specific dependencies behind a -d:termux switch
This commit is contained in:
parent
80fab1d861
commit
28da04c1f7
2 changed files with 3 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ path="$lib/pure"
|
||||||
@end
|
@end
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@if android:
|
@if android and termux:
|
||||||
cc = clang
|
cc = clang
|
||||||
gcc.options.linker = "-landroid-glob"
|
gcc.options.linker = "-landroid-glob"
|
||||||
gcc.cpp.options.linker = "-landroid-glob"
|
gcc.cpp.options.linker = "-landroid-glob"
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const
|
||||||
hasSpawnH = not defined(haiku) # should exist for every Posix system nowadays
|
hasSpawnH = not defined(haiku) # should exist for every Posix system nowadays
|
||||||
hasAioH = defined(linux)
|
hasAioH = defined(linux)
|
||||||
|
|
||||||
when defined(linux):
|
when defined(linux) and not defined(android):
|
||||||
# On Linux:
|
# On Linux:
|
||||||
# timer_{create,delete,settime,gettime},
|
# timer_{create,delete,settime,gettime},
|
||||||
# clock_{getcpuclockid, getres, gettime, nanosleep, settime} lives in librt
|
# clock_{getcpuclockid, getres, gettime, nanosleep, settime} lives in librt
|
||||||
|
|
@ -46,7 +46,7 @@ type
|
||||||
d_ino*: Ino ## File serial number.
|
d_ino*: Ino ## File serial number.
|
||||||
when defined(dragonfly):
|
when defined(dragonfly):
|
||||||
# DragonflyBSD doesn't have `d_reclen` field.
|
# DragonflyBSD doesn't have `d_reclen` field.
|
||||||
d_type*: uint8
|
d_type*: uint8
|
||||||
elif defined(linux) or defined(macosx) or defined(freebsd) or
|
elif defined(linux) or defined(macosx) or defined(freebsd) or
|
||||||
defined(netbsd) or defined(openbsd) or defined(genode):
|
defined(netbsd) or defined(openbsd) or defined(genode):
|
||||||
d_reclen*: cshort ## Length of this record. (not POSIX)
|
d_reclen*: cshort ## Length of this record. (not POSIX)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue