summaryrefslogtreecommitdiffstats
path: root/autoconf/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'autoconf/Pkgfile')
-rw-r--r--autoconf/Pkgfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/autoconf/Pkgfile b/autoconf/Pkgfile
index fe8622f..e8545fd 100644
--- a/autoconf/Pkgfile
+++ b/autoconf/Pkgfile
@@ -11,7 +11,11 @@ source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
build ()
{
cd $name-$version;
- ./configure --prefix=$prefix --mandir=$PKG$mandir;
+ ./configure \
+ ${CHOST:+--build=${CHOST}} \
+ ${CTARGET:+--host=${CTARGET}} \
+ --prefix=$prefix \
+ --mandir=$PKG$mandir;
make;
make prefix=$PKG/usr install;
}