diff options
author | 2014-03-05 12:19:37 +0000 | |
---|---|---|
committer | 2014-05-07 22:39:33 +0200 | |
commit | 958c9438ccb5e8c8864edf242b6b4ce3b1f058a4 (patch) | |
tree | f676957269811216600c392a601694bbdfe4423f /package/pkgconf/pkg-config.in | |
parent | fcb5b619f8ad6a58f4afa88c46941848a58e40e0 (diff) | |
download | buildroot-958c9438ccb5e8c8864edf242b6b4ce3b1f058a4.tar.gz buildroot-958c9438ccb5e8c8864edf242b6b4ce3b1f058a4.tar.bz2 |
host-pkgconf: use --static option for static builds
Detect when BR2_PREFER_STATIC_LIBS is selected and modify the host
pkg-config wrapper to append the --static option in that case.
Fixes:
http://autobuild.buildroot.net/results/161/161446dde7e8e774773eb2b34fd555f5ac22dd02/
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/pkgconf/pkg-config.in')
-rw-r--r-- | package/pkgconf/pkg-config.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pkgconf/pkg-config.in b/package/pkgconf/pkg-config.in index 25a536b0e6..4dec48789a 100644 --- a/package/pkgconf/pkg-config.in +++ b/package/pkgconf/pkg-config.in @@ -1,2 +1,2 @@ #!/bin/sh -PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-@PKG_CONFIG_LIBDIR@} PKG_CONFIG_SYSROOT_DIR=${PKG_CONFIG_SYSROOT_DIR:-@STAGING_DIR@} $(dirname $0)/pkgconf $@ +PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-@PKG_CONFIG_LIBDIR@} PKG_CONFIG_SYSROOT_DIR=${PKG_CONFIG_SYSROOT_DIR:-@STAGING_DIR@} $(dirname $0)/pkgconf @STATIC@ $@ |