10000 removed `usr` and `lib` from ndk library path · sergiomorillo/python-for-android@4487002 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4487002

Browse files
authored
removed usr and lib from ndk library path
fix for ```sh ld: error: unable to find library -lrt clang-12: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/bin/ccache' failed with exit status 1 ``` the above error is using this path ```sh /home/<user>/.buildozer/android/platform/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/21/usr/lib ``` instead of ```sh /home/kengo/.buildozer/android/platform/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/21 ```
1 parent 26d464a commit 4487002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipes/librt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class LibRt(Recipe):
1919
finishes'''
2020

2121
def build_arch(self, arch):
22-
libc_path = join(arch.ndk_lib_dir, 'usr', 'lib', 'libc')
22+
libc_path = join(arch.ndk_lib_dir, 'libc')
2323
# Create a temporary folder to add to link path with a fake librt.so:
2424
fake_librt_temp_folder = join(
25 3AE3 25
self.get_build_dir(arch.arch),

0 commit comments

Comments
 (0)
0