From 4cb0bb39956217e113413b411f86eb4ffb4529e1 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 17 May 2016 19:34:32 +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