Skip to content

Commit 2ae150d

Browse files
authored
Merge pull request #5793 from landfillbaby/patch-1
Fix compilation on Termux
2 parents caa0deb + f246049 commit 2ae150d

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
@@ -560,7 +560,11 @@ def build_extensions(self):
560560
# headers are at $PREFIX/include
561561
# user libs are at $PREFIX/lib
562562
_add_directory(
563-
library_dirs, os.path.join(os.environ["ANDROID_ROOT"], "lib")
563+
library_dirs,
564+
os.path.join(
565+
os.environ["ANDROID_ROOT"],
566+
"lib" if struct.calcsize("l") == 4 else "lib64",
567+
),
564568
)
565569

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

0 commit comments

Comments
 (0)