CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
binutils: update to 2.22. Removed host's texinfo dependency.
[crossrootfs.git] / gcc / Pkgfile
index a06c7e0e14a4184197b47dd4d6c108e956085677..c0aab554976dbea8204b4f644bceb3a58a48ea58 100644 (file)
@@ -13,7 +13,6 @@ source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-{core,g++
 
 build() {
   cd $name-$version
-  
   patch -p1 -i $SRC/$name-$version-gnueabihf.patch
   sed -i 's|REVISION|REVISION " (CRUX)"|' $name/version.c
   # apply a sed substitutio that will suppress the installation of libiberty.a
@@ -23,7 +22,9 @@ build() {
   cd $SRC/build
 
   LDFLAGS="-Wl,-rpath-link,$CROSSTOOLS/$CTARGET/lib" \
-  ../$name-$version/configure --build=$MACHTYPE \
+  ../$name-$version/configure --build=$CHOST \
+                              --host=$CTARGET \
+                              --target=$CTARGET \
                               --prefix=/usr \
                               --mandir=/usr/man \
                               --libexecdir=/usr/lib \