wok-current rev 10303

pkg-config: use TOOLPREFIX like binutils to make cross compilation happy
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 22 02:12:16 2011 +0200 (2011-05-22)
parents 0810dd559a58
children 4c752152fba2
files pkg-config/receipt
line diff
     1.1 --- a/pkg-config/receipt	Sun May 22 01:31:33 2011 +0200
     1.2 +++ b/pkg-config/receipt	Sun May 22 02:12:16 2011 +0200
     1.3 @@ -16,7 +16,10 @@
     1.4  {
     1.5  	cd $src
     1.6  	patch -p1 < $stuff/autoconf-2.66.patch
     1.7 -	./configure && make && make install
     1.8 +	./configure \
     1.9 +		--program-prefix=$TOOLPREFIX \
    1.10 +		--build=$HOST_SYSTEM --host=$HOST_SYSTEM &&
    1.11 +	make && make install
    1.12  }
    1.13  
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 @@ -25,4 +28,7 @@
    1.16  	mkdir -p $fs/usr/share
    1.17  	cp -a $_pkg/usr/bin $fs/usr
    1.18  	cp -a $_pkg/usr/share/aclocal $fs/usr/share
    1.19 +	# This is the default pkg-config so make a symling for package that dont
    1.20 +	# cross compile or search for /usr/bin/pkg-config.
    1.21 +	cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config
    1.22  }