libtool: split to host and target build

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-07-25 10:53:12 +02:00
parent 50a2052b58
commit 0066b11652
11 changed files with 52 additions and 19 deletions

22
packages/devel/libtool/build Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
. config/options $1
cd $PKG_BUILD
mkdir -p .objdir-target
cd .objdir-target
../configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
--disable-static \
--enable-shared \
--enable-ltdl-install \
make
$MAKEINSTALL

6
packages/devel/libtool/install Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
. config/options $1
mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/.objdir-target/libltdl/.libs/*.so* $INSTALL/usr/lib

View File

@ -3,7 +3,7 @@
. config/options $1
$SCRIPTS/build m4
$SCRIPTS/build libtool
$SCRIPTS/build libtool-host
setup_toolchain host

View File

@ -3,7 +3,7 @@
. config/options $1
$SCRIPTS/build m4
$SCRIPTS/build libtool
$SCRIPTS/build libtool-host
setup_toolchain host

View File

@ -0,0 +1,22 @@
#!/bin/sh
. config/options $1
$SCRIPTS/unpack libtool
setup_toolchain host
cd $BUILD/libtool*
mkdir -p .objdir-host
cd .objdir-host
../configure --host=$HOST_NAME \
--build=$HOST_NAME \
--target=$TARGET_NAME \
--prefix=$ROOT/$TOOLCHAIN \
--enable-shared \
--disable-static \
make
make install

View File

@ -1,17 +0,0 @@
#!/bin/sh
. config/options $1
setup_toolchain host
cd $PKG_BUILD
./configure --host=$HOST_NAME \
--build=$HOST_NAME \
--target=$TARGET_NAME \
--prefix=$ROOT/$TOOLCHAIN \
--enable-shared \
--disable-static \
make
make install
make prefix=$SYSROOT_PREFIX/usr install