radareorg / sdb

Simple and fast string based key-value database with support for arrays and json
https://www.radare.org/
MIT License
218 stars 62 forks source link

Compile a native sdb binary when cross building #231

Closed ret2libc closed 3 years ago

ret2libc commented 3 years ago

Detailed description

sdb binary may be used by the build machine to compile .sdb files. In that case it is necessary to have the sdb binary compiled for the build machine and not for the host one, as it is by default.

Test plan

Create a file cross-file.txt with:

[properties]
exe_wrapper = 'wine'

and then run meson build --cross-file cross-file.txt ; ninja -C build. It should work and it should create another binary called sdb_native.

Closing issues

None

trufae commented 3 years ago

Can you update the README with this information? thanks!

trufae commented 3 years ago

i'll document that

trufae commented 3 years ago

Done in https://github.com/radareorg/sdb/commit/943b7c63dc26d0747fe5f04a0a1b926480f9e0e7