blob: e7ae4dcbbf9cbeac800e9d37590737260d03e022 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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:/usr/@TRIPLE@/share/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_PATH_CUSTOM}:${PKG_CONFIG_LIBDIR}
# Now just execute pkg-config with the given command line args.
pkg-config $@
|