host-pkgconf: use --static option for static builds
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 5 Mar 2014 12:19:37 +0000 (12:19 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 7 May 2014 20:39:33 +0000 (22:39 +0200)
commit958c9438ccb5e8c8864edf242b6b4ce3b1f058a4
treef676957269811216600c392a601694bbdfe4423f
parentfcb5b619f8ad6a58f4afa88c46941848a58e40e0
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>
package/pkgconf/pkg-config.in
package/pkgconf/pkgconf.mk