aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Skowronek <arthur.skowronek@tuta.io>2018-10-15 14:55:57 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2018-10-20 16:24:29 +0200
commit5f2cb6d7dc9de24bec7b1139f8d785f0e7588eed (patch)
tree249b95e1b7050c11a69fe81094109058b0c0cbb8
parent260be8a5790416a8e8e42eb59d5b24a656e4bedb (diff)
downloadupstream-5f2cb6d7dc9de24bec7b1139f8d785f0e7588eed.tar.gz
upstream-5f2cb6d7dc9de24bec7b1139f8d785f0e7588eed.tar.bz2
upstream-5f2cb6d7dc9de24bec7b1139f8d785f0e7588eed.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>
-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} $@