Skip to content

Commit e3c8ef9

Browse files
committed
fix compilation on Termux
1 parent 1273152 commit e3c8ef9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,11 @@ def build_extensions(self):
561561
# headers are at $PREFIX/include
562562
# user libs are at $PREFIX/lib
563563
_add_directory(
564-
library_dirs, os.path.join(os.environ["ANDROID_ROOT"], "lib")
564+
library_dirs,
565+
os.path.join(
566+
os.environ["ANDROID_ROOT"],
567+
"lib" if struct.calcsize("l") == 4 else "lib64"
568+
)
565569
)
566570

567571
elif sys.platform.startswith("netbsd"):

0 commit comments

Comments
 (0)