diff options
author | Michel Zou | 2016-02-02 20:45:24 +0100 |
---|---|---|
committer | Michel Zou | 2016-02-02 20:45:24 +0100 |
commit | c3732ae536cae13288305f92913d50fc01ffd069 (patch) | |
tree | a4d87f9eaa6484c397e23e10d9e3c7fae84ae4fe /mingw-pkgconfig.sh | |
parent | 5e239f87761bb76f6ab41e556228e5db7658b23f (diff) | |
download | aur-c3732ae536cae13288305f92913d50fc01ffd069.tar.gz |
unify scripts
Diffstat (limited to 'mingw-pkgconfig.sh')
-rw-r--r-- | mingw-pkgconfig.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mingw-pkgconfig.sh b/mingw-pkgconfig.sh new file mode 100644 index 000000000000..e1601d732617 --- /dev/null +++ b/mingw-pkgconfig.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# Taken from +# http://www.mega-nerd.com/erikd/Blog/CodeHacking/MinGWCross/pkg-config.html +# Thanks, Erik + +# This file has no copyright assigned and is placed in the Public Domain. +# No warranty is given. + +# When using the mingw32msvc cross compiler tools, the native Linux +# pkg-config executable works fine as long as the default PKG_CONFIG_LIBDIR +# is overridden. +export PKG_CONFIG_LIBDIR=/usr/@TRIPLE@/lib/pkgconfig + +# Also want to override the standard user defined PKG_CONFIG_PATH with +# a mingw32msvc specific one. +# You can use PKG_CONFIG_PATH_CUSTOM to tweak pkg-config behavior further +export PKG_CONFIG_PATH=$PKG_CONFIG_LIBDIR:$PKG_CONFIG_PATH_CUSTOM + +# Now just execute pkg-config with the given command line args. +pkg-config $@ |