Now:
% PATH=./staging_dir/host/bin:$PATH STAGING_PREFIX=/test PKG_CONFIG_PATH=$(echo
staging_dir/target-*/usr/lib/pkgconfig) ./staging_dir/host/bin/pkg-config
--cflags lua
-I/test//include
After applying the patch:
% PATH=./staging_dir/host/bin:$PATH STAGING_PREFIX=/test PKG_CONFIG_PATH=$(echo
staging_dir/target-*/usr/lib/pkgconfig) ./staging_dir/host/bin/pkg-config
--cflags lua
-I/test/include
I guess that there sould not be '//' but only one '/'.
Signed-off-by: Luka Perkov < openwrt ->-to->- lukaperkov.net >
---
Index: tools/pkg-config/files/pkg-config
===================================================================
--- tools/pkg-config/files/pkg-config (revision 27718)
+++ tools/pkg-config/files/pkg-config (working copy)
@@ -1,3 +1,3 @@
#!/bin/sh
-pkg-config.real $@ --define-variable=prefix=${STAGING_PREFIX}/
--define-variable=exec_prefix=${STAGING_PREFIX}/
+pkg-config.real $@ --define-variable=prefix=${STAGING_PREFIX}
--define-variable=exec_prefix=${STAGING_PREFIX}
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel