geofft / redhook

Dynamic function call interposition / hooking (LD_PRELOAD) for Rust
BSD 2-Clause "Simplified" License
176 stars 18 forks source link

enable ld_preload for android target #26

Open nohajc opened 1 year ago

nohajc commented 1 year ago

Hi, I was trying to build a shared library with the aarch64-linux-android target (for use with Termux) and it didn't work because ld_preload module is enabled for gnu targets only.

After the following change, I was indeed able to run the resulting binary on Android and it worked as expected, so I propose this PR.