pkg-config: fix prefix
authorFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jul 2011 09:02:49 +0000 (09:02 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jul 2011 09:02:49 +0000 (09:02 +0000)
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 >
SVN-Revision: 27744

tools/pkg-config/files/pkg-config

index 8e017fb45b7efa6c3ec9ad1e31375d01d288230c..e58b13216dc6cbd635c56a25048ca5918290bee9 100755 (executable)
@@ -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}