GNOME Bugzilla – Bug 754902
cerbero: Should consider sysroot when building PKG_CONFIG env
Last modified: 2015-10-02 21:36:12 UTC
I was trying to cross compile with cerbero but hit a issue with repository that do require external (aka external to cerbero prefix) dependencies. The issue is that we ignore "sysroot" configuration when building the PKG_CONFIG env. The following patch is a suggested fix for this issue. I'm open to comment of course.
Created attachment 311175 [details] [review] Include sysroot value when building pkg-config env The problem was that when cross-compiling and in need to link against system library, we would pick .pc files from the host rather then from the sysroot. This patch simply prepent the sysroot configuration (if set) so .pc file is now picked from the sysroot when needed (and allowed).
Created attachment 311176 [details] [review] Include sysroot value when building pkg-config env The problem was that when cross-compiling and in need to link against system library, we would pick .pc files from the host rather then from the sysroot. This patch simply prepent the sysroot configuration (if set) so .pc file is now picked from the sysroot when needed (and allowed).
I just removed the left over debug trace.
Attachment 311176 [details] pushed as 6e30bd3 - Include sysroot value when building pkg-config env