From f4dc7e96c1f746e85201a5bb9fc0c5cd01d0ed30 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Sun, 15 May 2016 18:41:36 +0000 Subject: [PATCH] file: updated with host build. Thanks for the patch j_v --- file/Pkgfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/file/Pkgfile b/file/Pkgfile index cd502a5..11dde42 100644 --- a/file/Pkgfile +++ b/file/Pkgfile @@ -12,6 +12,19 @@ source=(ftp://ftp.astron.com/pub/file/$name-$version.tar.gz) build() { cd $name-$version + OLD_PATH=$PATH + export PATH=/usr/bin:/bin + + CC=gcc CXX=g++ \ + CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \ + LDFLAGS="" \ + AR=ar LD=ld AS=as RANLIB=ranlib STRIP=strip \ + ./configure --prefix=$SRC/host_file + make + make install + + export PATH=$SRC/host_file/bin:$OLD_PATH + ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ -- 2.26.2