summaryrefslogtreecommitdiff
path: root/community/libdnet/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libdnet/PKGBUILD')
-rw-r--r--community/libdnet/PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/community/libdnet/PKGBUILD b/community/libdnet/PKGBUILD
index 0e9854553..433626ab2 100644
--- a/community/libdnet/PKGBUILD
+++ b/community/libdnet/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=libdnet
pkgver=1.12
pkgrel=5
pkgdesc="A simplified, portable interface to several low-level networking routines"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
makedepends=(python2)
optdepends=(python2)
install=libdnet.install
@@ -20,9 +20,10 @@ build() {
mkdir -p $pkgdir/usr/bin
[ $CARCH == "x86_64" ] && export CFLAGS=-fPIC
+ [ $CARCH == "mips64el" ] && export CFLAGS+=-fPIC
cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr
+ ./configure --prefix=/usr --target=${CHOST} --host=${CHOST} --build=${CHOST}
make && make DESTDIR=$pkgdir install
cd python && \