- split in host and target
This commit is contained in:
Stephan Raue 2009-11-06 15:35:27 +01:00
parent f61cd3668e
commit d131d6c4d7
3 changed files with 29 additions and 9 deletions

View File

@ -0,0 +1,17 @@
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/unpack expat
setup_toolchain host
cd $BUILD/expat-*
mkdir -p .build-host
cd .build-host
../configure --prefix=$ROOT/$TOOLCHAIN \
make
make install

View File

@ -5,14 +5,17 @@
$SCRIPTS/build toolchain
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-shared \
mkdir -p .build-target
$MAKE
cd .build-target
../configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-shared \
make
$MAKEINSTALL

View File

@ -3,4 +3,4 @@
. config/options
mkdir -p $INSTALL/usr/lib
cp -PR $PKG_BUILD/.libs/libexpat.so* $INSTALL/usr/lib
cp -PR $PKG_BUILD/.build-target/.libs/libexpat.so* $INSTALL/usr/lib