tools/pkg-config: pass arguments at the end
authorArthur Skowronek <arthur.skowronek@tuta.io>
Mon, 15 Oct 2018 12:55:57 +0000 (14:55 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 24 Apr 2019 05:22:17 +0000 (07:22 +0200)
commitaaa34526c4a71a4f2a63142db1a207f493c4be8f
tree181654167721309363cc937f1b6e42eb2d090cee
parent3103bd54c5707192c0b0b58bcdac14514887eaad
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)
tools/pkg-config/files/pkg-config