From: Victor Martinez Date: Sun, 15 May 2016 18:41:36 +0000 (+0000) Subject: file: updated with host build. Thanks for the patch j_v X-Git-Url: http://gitweb/?a=commitdiff_plain;h=f4dc7e96c1f746e85201a5bb9fc0c5cd01d0ed30;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 \