aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkg-config/files
diff options
context:
space:
mode:
authorArthur Skowronek <arthur.skowronek@tuta.io>2018-10-15 14:55:57 +0200
committerJo-Philipp Wich <jo@mein.io>2019-04-24 07:22:17 +0200
commitaaa34526c4a71a4f2a63142db1a207f493c4be8f (patch)
tree181654167721309363cc937f1b6e42eb2d090cee /tools/pkg-config/files
parent3103bd54c5707192c0b0b58bcdac14514887eaad (diff)
downloadupstream-aaa34526c4a71a4f2a63142db1a207f493c4be8f.tar.gz
upstream-aaa34526c4a71a4f2a63142db1a207f493c4be8f.tar.bz2
upstream-aaa34526c4a71a4f2a63142db1a207f493c4be8f.zip
tools/pkg-config: pass arguments at the end
Go for openwrt passes pkg-config arguments in the format of pkg-config --cflags -- pkg-name which in turn will be passed down to the real pkg-config as something like pkg-config.real --cflags -- pkg-name --define... and causes the real pkg-config implementation to missinterpret the given argument list. This also helps to fix https://github.com/golang/go/issues/27940 Signed-off-by: Arthur Skowronek <arthur.skowronek@tuta.io> (cherry picked from commit 5f2cb6d7dc9de24bec7b1139f8d785f0e7588eed)
Diffstat (limited to 'tools/pkg-config/files')
-rwxr-xr-xtools/pkg-config/files/pkg-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pkg-config/files/pkg-config b/tools/pkg-config/files/pkg-config
index e58b13216d..bf95380e7f 100755
--- a/tools/pkg-config/files/pkg-config
+++ b/tools/pkg-config/files/pkg-config
@@ -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} $@