mirror of
https://github.com/termux/termux-packages.git
synced 2025-11-01 10:18:52 +00:00
- Originally, in https://github.com/termux/termux-packages/pull/24716, I implemented only the `.vsix` package because that is what is required for using codelldb with `code-oss`, which is the only way that I personally use it. However, I did not realize at the time that it was possible to use codelldb with **non-VSCode-based editors**, and that people who use it outside of any VSCode-based editor **need to directly execute the binary**, making it important for that binary to be available in `$TERMUX_PREFIX/bin`. - **This PR implements the following three commands that do _not_ currently work/exist in Termux**: - `pkg install codelldb` - `codelldb` - `python -c "import codelldb"` - This heavily patches and organizes the package in such a way that the needs of @BenVella, the user of codelldb in Termux, are better met - for their case, using codelldb inside NeoVIM: https://github.com/vadimcn/codelldb/discussions/1278#discussioncomment-14059990 - All of the the preexisting functionality of both the `vsix-package-codelldb` package and the `code-oss-extension-codelldb` package should remain working and available after this reorganization. - Also, properly marks the subpackage as **not** platform-independent by inheritance of the property from its dependencies. For more information, see: https://github.com/termux/termux-packages/pull/25306
21 lines
779 B
Diff
21 lines
779 B
Diff
In Android, RTLD_LOCAL is 0x0 and RTLD_GLOBAL is 0x100, just like GNU/Linux
|
|
https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/include/dlfcn.h#181
|
|
|
|
--- a/weaklink/src/loading.rs
|
|
+++ b/weaklink/src/loading.rs
|
|
@@ -27,12 +27,12 @@ pub mod unix {
|
|
pub const RTLD_LAZY: c_int = 0x0001;
|
|
pub const RTLD_NOW: c_int = 0x0002;
|
|
|
|
- #[cfg(target_os = "linux")]
|
|
+ #[cfg(any(target_os = "linux", target_os = "android"))]
|
|
pub const RTLD_LOCAL: c_int = 0x0000;
|
|
#[cfg(target_os = "macos")]
|
|
pub const RTLD_LOCAL: c_int = 0x0004;
|
|
|
|
- #[cfg(target_os = "linux")]
|
|
+ #[cfg(any(target_os = "linux", target_os = "android"))]
|
|
pub const RTLD_GLOBAL: c_int = 0x0100;
|
|
#[cfg(target_os = "macos")]
|
|
pub const RTLD_GLOBAL: c_int = 0x0008;
|