mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
pkg-config: prefix sysroot to path variables
Fixes gst-plugins-bad build, if gstreamer is installed on host with xml support, as it uses pkg-config --variable=includedir to find gstconfig.h, and hence ends up looking at the host version. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
d5da84fda9
commit
b4df2ea27f
27
package/pkg-config/pkg-config-0.25-fix-variable.patch
Normal file
27
package/pkg-config/pkg-config-0.25-fix-variable.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[PATCH] prefix sysroot to path variables
|
||||||
|
|
||||||
|
Prefix path values with sysroot if a variable is requested
|
||||||
|
(--varable=<name>), similar to how it's done for -I / -L flags.
|
||||||
|
|
||||||
|
This is sometimes used to find header files (E.G. in gst-plugins configure),
|
||||||
|
so ensure the sysroot'ed files are used.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
||||||
|
---
|
||||||
|
main.c | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
Index: pkg-config-0.25/main.c
|
||||||
|
===================================================================
|
||||||
|
--- pkg-config-0.25.orig/main.c
|
||||||
|
+++ pkg-config-0.25/main.c
|
||||||
|
@@ -695,6 +695,9 @@ main (int argc, char **argv)
|
||||||
|
if (variable_name)
|
||||||
|
{
|
||||||
|
char *str = packages_get_var (packages, variable_name);
|
||||||
|
+ /* path variable? */
|
||||||
|
+ if (pcsysrootdir && str[0] == '/')
|
||||||
|
+ printf ("%s/", pcsysrootdir);
|
||||||
|
printf ("%s", str);
|
||||||
|
g_free (str);
|
||||||
|
need_newline = TRUE;
|
Loading…
x
Reference in New Issue
Block a user