419056684c4b93689a0f68ebd265bfc239908e55 Build host file so that cross build can use that copy for generating the 'magic' database. --- 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.7.4