4cf0b6606a
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}. Fixing broken cinnamon (mozjs52's only user) cross build.
8 lines
429 B
Diff
8 lines
429 B
Diff
--- a/js/src/js.pc.in
|
|
+++ b/js/src/js.pc.in
|
|
@@ -8,4 +8,4 @@ Description: The Mozilla library for JavaScript
|
|
Version: @MOZILLA_VERSION@
|
|
@PKGCONF_REQUIRES_PRIVATE@
|
|
Libs: -L${libdir} -l@JS_LIBRARY_NAME@
|
|
-Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -I${includedir}/@JS_LIBRARY_NAME@
|
|
+Cflags: -include ${pc_sysrootdir}${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -I${includedir}/@JS_LIBRARY_NAME@
|