0cfe37798f
pkg-config: honor sysroot when used to cross-compile From https://autotools.io/pkgconfig/cross-compiling.html > To design a variable to contain a path that needs to be used at build > time, such as the path where a generation script is, you can prefix it > in the .pc file with the built-in variable ${pc_sysrootdir}.
13 lines
356 B
Diff
13 lines
356 B
Diff
--- src/libmuffin.pc.in
|
|
+++ src/libmuffin.pc.in
|
|
@@ -2,8 +2,8 @@
|
|
exec_prefix=@exec_prefix@
|
|
libdir=@libdir@
|
|
includedir=@includedir@
|
|
-girdir=@libdir@/muffin
|
|
-typelibdir=@libdir@/muffin
|
|
+girdir=${pc_sysrootdir}@libdir@/muffin
|
|
+typelibdir=${pc_sysrootdir}@libdir@/muffin
|
|
apiversion=@MUFFIN_PLUGIN_API_VERSION@
|
|
|
|
muffin_major_version=@MUFFIN_MAJOR_VERSION@
|