summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysfsutils/Pkgfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysfsutils/Pkgfile b/sysfsutils/Pkgfile
index 09c813a..1f18657 100644
--- a/sysfsutils/Pkgfile
+++ b/sysfsutils/Pkgfile
@@ -11,7 +11,11 @@ source=(http://downloads.sourceforge.net/project/linux-diag/$name/$version/$name
build ()
{
cd $name-$version;
- ./configure --prefix=$prefix --mandir=$mandir;
+ ./configure \
+ ${CHOST:+--build=${CHOST}} \
+ ${CTARGET:+--host=${CTARGET}} \
+ --prefix=$prefix \
+ --mandir=$mandir;
make;
make DESTDIR=$PKG install;
rm -f $PKG/usr/bin/dlist_test