Skip to content

Commit

Permalink
fix compilation on Termux
Browse files Browse the repository at this point in the history
  • Loading branch information
landfillbaby committed Oct 24, 2021
1 parent 1273152 commit e3c8ef9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Expand Up @@ -561,7 +561,11 @@ def build_extensions(self):
# headers are at $PREFIX/include
# user libs are at $PREFIX/lib
_add_directory(
library_dirs, os.path.join(os.environ["ANDROID_ROOT"], "lib")
library_dirs,
os.path.join(
os.environ["ANDROID_ROOT"],
"lib" if struct.calcsize("l") == 4 else "lib64"
)
)

elif sys.platform.startswith("netbsd"):
Expand Down

0 comments on commit e3c8ef9

Please sign in to comment.