diff --git a/packages/textproc/expat-host/build b/packages/textproc/expat-host/build new file mode 100755 index 0000000000..66c18ac903 --- /dev/null +++ b/packages/textproc/expat-host/build @@ -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 diff --git a/packages/textproc/expat/build b/packages/textproc/expat/build index 935f864ff1..b3d2816c44 100755 --- a/packages/textproc/expat/build +++ b/packages/textproc/expat/build @@ -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 diff --git a/packages/textproc/expat/install b/packages/textproc/expat/install index 3853fa68b3..62c5eeb8fd 100755 --- a/packages/textproc/expat/install +++ b/packages/textproc/expat/install @@ -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