CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
prt-get: fixed maintainer line in Pkgfile and bumped release to sync with armhf
[ports/core-arm.git] / gcc / Pkgfile
index 10cacd6321beca9ec0f55fe8b654d53660bb6ad3..f4fa756f9c4c0d867b5269e817e15b5349d55cdf 100644 (file)
@@ -11,11 +11,13 @@ source=(http://ftp.gnu.org/gnu/gcc/$name-$version/$name-{core,g++,objc}-$version
         $name-nocheck-fixincludes.patch $name-$version-preprocessor_symbol.patch)
 
 build() {
-  patch -p0 -i $SRC/$name-$version-preprocessor_symbol.patch
+  patch -d $name-$version -p1 -i $SRC/$name-$version-preprocessor_symbol.patch
   patch -d $name-$version -p1 -i $SRC/$name-nocheck-fixincludes.patch
+
   mkdir build
   cd build
   ../$name-$version/configure --prefix=/usr \
+                              --build=arm-crux-linux-gnueabi \
                               --mandir=/usr/man \
                               --libexecdir=/usr/lib \
                               --enable-languages=c,c++,objc \
@@ -27,6 +29,7 @@ build() {
                               --with-x=no \
                               --with-system-zlib \
                               --with-pkgversion="CRUX"
+
   make bootstrap
   make -j1 DESTDIR=$PKG install