termux-user-repository / tur

A place for all types of Termux packages.
Other
363 stars 75 forks source link

addpkg(zerotier-one): 1.14.0 #1112

Open nexplorer-3e opened 3 days ago

nexplorer-3e commented 3 days ago

zerotier-one needs to create network interface, so NET_* capabilities should be given. currently zerotier seemed to use route table related to ip route, which is not useful under android. To use it conveniently future works like scripts for convert ip route to ip rule are needed.

as for the build.sh, it's possible to specify (w/ build) dependencies to speed up building, as I only use static library for arm, and currenly miniupnpc is not used (the version zerotier depends is too old). So improvements are appreciated ;)

nexplorer-3e commented 3 days ago

Note: I met a problem when linking the object compiled from ARM assembly code (ext/arm32-neon-salsa2012-asm/salsa2012-asm): ld.lld: error: relocation R_ARM_ABS32 cannot be used against local symbol; recompile with -fPIC Specified -fPIC in CFLAGS with same error. I attemped to assemble the code with -c in clang flags, link the object with no -pie, and this error is gone. But there is another error about symbol not found (I just include the object without other object so it may be normal), while more seriously android seemed does not allow to do this, so finally I can only make it compiles with -static. If you guys know how to compile arm assembly code correctly, please leave the comments to help.