Android support: put Termux specific dependencies behind a -d:termux switch

This commit is contained in:
Andreas Rumpf 2017-08-30 13:33:09 +02:00
commit 28da04c1f7
2 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ path="$lib/pure"
@end
@end
@if android:
@if android and termux:
cc = clang
gcc.options.linker = "-landroid-glob"
gcc.cpp.options.linker = "-landroid-glob"

View file

@ -15,7 +15,7 @@ const
hasSpawnH = not defined(haiku) # should exist for every Posix system nowadays
hasAioH = defined(linux)
when defined(linux):
when defined(linux) and not defined(android):
# On Linux:
# timer_{create,delete,settime,gettime},
# clock_{getcpuclockid, getres, gettime, nanosleep, settime} lives in librt