From: Jose V Beneyto Date: Mon, 14 Dec 2009 08:18:51 +0000 (+0100) Subject: bc: fixed compilation X-Git-Url: http://gitweb/?a=commitdiff_plain;h=1c6e6ec69945d5191f2f1220a4d6988925e96a1d;p=crossrootfs.git bc: fixed compilation --- diff --git a/bc/Pkgfile b/bc/Pkgfile index 9d195a9..c7e1471 100644 --- a/bc/Pkgfile +++ b/bc/Pkgfile @@ -6,19 +6,22 @@ name=bc version=1.06 -release=3 +release=4 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \ $name-$version-compile_fixes.patch $name-$version-fixes-1.patch) build() { cd $name-$version - patch -p1 < ../$name-$version-compile_fixes.patch - patch -p1 < ../$name-$version-fixes-1.patch + + patch -p1 -i $SRC/$name-$version-compile_fixes.patch + patch -p1 -i $SRC/$name-$version-fixes-1.patch + sed '/^_PROTOTYPE/d' -i bc/scan.c ./configure --build=$CHOST \ --host=$CTARGET \ - --prefix=/usr --with-readline - make + --prefix=/usr \ + --with-readline + make AR="$AR" make DESTDIR=$PKG install rm -rf $PKG/usr/info }