While implementing FreeBSD x86 support (frida/frida-gum#1056, frida/frida-core#1188), I encountered a build problem during cross-compilation from FreeBSD x86_64 host.
Problem Description
When cross-compiling for FreeBSD x86:
- Missing system dependencies (sqlite, quickjs) on host OS trigger meson to build them from source
- During
configure phase, meson detects missing dependencies and plans to build them
- At
build phase, these dependencies aren't properly picked up by pkg-config
- Build fails despite dependencies being available in source form
Suspected Causes
Potential issues in:
Workaround
As my primary goal was LibAFL fuzzing setup, I used a temporary solution:
- Built all dependencies manually (or with meson's help)
- Collected them in a single directory
- Pointed meson to this directory during
configure
While implementing FreeBSD x86 support (frida/frida-gum#1056, frida/frida-core#1188), I encountered a build problem during cross-compilation from FreeBSD x86_64 host.
Problem Description
When cross-compiling for FreeBSD x86:
configurephase, meson detects missing dependencies and plans to build thembuildphase, these dependencies aren't properly picked up by pkg-configSuspected Causes
Potential issues in:
mkdevkit.pydevkit.pyWorkaround
As my primary goal was LibAFL fuzzing setup, I used a temporary solution:
configure