CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
file: updated with host build. Thanks for the patch j_v
authorVictor Martinez <pitillo@ono.com>
Tue, 17 May 2016 19:34:32 +0000 (19:34 +0000)
committerVictor Martinez <pitillo@ono.com>
Tue, 17 May 2016 19:34:32 +0000 (19:34 +0000)
file/Pkgfile

index cd502a5e1bc26aee4380be1087e0cc686a7d4288..11dde42a37d131bb20fc0de438f539343432cf16 100644 (file)
@@ -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 \