Skip to content

Commit

Permalink
Merge pull request #5793 from landfillbaby/patch-1
Browse files Browse the repository at this point in the history
Fix compilation on Termux
  • Loading branch information
radarhere committed Oct 31, 2021
2 parents caa0deb + f246049 commit 2ae150d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Expand Up @@ -560,7 +560,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 2ae150d

Please sign in to comment.