Skip to content

Commit

Permalink
tools/pkg-config: pass arguments at the end
Browse files Browse the repository at this point in the history
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 golang/go#27940

Signed-off-by: Arthur Skowronek <arthur.skowronek@tuta.io>
  • Loading branch information
0x5a17ed authored and hauke committed Oct 20, 2018
1 parent 260be8a commit 5f2cb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pkg-config/files/pkg-config
Original file line number Diff line number Diff line change
@@ -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} $@

0 comments on commit 5f2cb6d

Please sign in to comment.