Make the SDK relative/portable to allow a cross-compilation approach to target the freedesktop SDK
Hi,
We're investigating how to build Bitwig Studio against freedesktop's runtime.
We tried using freedesktopsdk/flatpak:21.08-x86_64
docker image and it turns out to be quite complicated because we have a lot of build time dependencies, and it is impractical to import all of them, also we'd need then to maintain multiple build scripts and setup scripts just to get an image that can build Bitwig Studio against flatpak's runtime.
Also flatpak-builder is not an option for us, because it has the very same issues as the Docker image.
For us, the ideal solution would be to build for freedesktopsdk and not within freedesktopsdk. We'd like an approach that is similar to cross-compilation.
I've tried to use --sysroot=/var/lib/flatpak/runtime/org.freedesktop.Sdk/x86_64/21.08/active/files/
but it did not work because the SDK contains absolute symbolic links and absolute file path.
Is that an approach that you'd consider valid and would like to support?
Regards, Alexandre