From: Victor Martinez Date: Tue, 17 May 2016 19:34:32 +0000 (+0000) Subject: file: updated with host build. Thanks for the patch j_v X-Git-Url: http://gitweb/?a=commitdiff_plain;h=4cb0bb39956217e113413b411f86eb4ffb4529e1;p=crossrootfs.git file: updated with host build. Thanks for the patch j_v --- 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 \