summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gdbm/Pkgfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdbm/Pkgfile b/gdbm/Pkgfile
index 5ccb5ff..dccd6d9 100644
--- a/gdbm/Pkgfile
+++ b/gdbm/Pkgfile
@@ -12,7 +12,11 @@ build ()
{
cd $name-$version;
patch -p1 -i $SRC/$name-$version-compat-linking.patch;
- ./configure --prefix=$prefix --includedir=$prefix/include/gdbm;
+ ./configure \
+ ${CHOST:+--build=${CHOST}} \
+ ${CTARGET:+--host=${CTARGET}} \
+ --prefix=$prefix \
+ --includedir=$prefix/include/gdbm;
make;
make -j1 INSTALL_ROOT=$PKG install install-compat;
ln -sf gdbm/gdbm.h $PKG/usr/include/gdbm.h;