X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=crossppc-gcc.spec;h=9cda5163a66be0b08077b25e8d0ad15b2aae9ff2;hb=9929017aca6dfbdc0eead18029e95ae0e2d6eac0;hp=300c7e44b23c3e28c4753146cc74175dc029ba95;hpb=36963cbaac36a002878c4ea34cab7e833d8ab8f5;p=packages%2Fcrossppc-gcc.git diff --git a/crossppc-gcc.spec b/crossppc-gcc.spec index 300c7e4..9cda516 100644 --- a/crossppc-gcc.spec +++ b/crossppc-gcc.spec @@ -6,23 +6,13 @@ Summary(pt_BR): Utilit Summary(tr): GNU geliþtirme araçlarý - PPC gcc Name: crossppc-gcc Version: 4.0.2 -#define _snap 20050609 -Release: 1 +Release: 2 Epoch: 1 License: GPL Group: Development/Languages Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 # Source0-md5: a659b8388cac9db2b13e056e574ceeb0 -#Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-%{_snap}/gcc-4.0-%{_snap}.tar.bz2 -%define _llh_ver 2.6.12.0 -Source1: http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-%{_llh_ver}.tar.bz2 -# Source1-md5: eae2f562afe224ad50f65a6acfb4252c -%define _glibc_ver 2.3.5 -Source2: ftp://sources.redhat.com/pub/glibc/releases/glibc-%{_glibc_ver}.tar.bz2 -# Source2-md5: 93d9c51850e0513aa4846ac0ddcef639 -Source3: ftp://sources.redhat.com/pub/glibc/releases/glibc-linuxthreads-%{_glibc_ver}.tar.bz2 -# Source3-md5: 77011b0898393c56b799bc011a0f37bf -Patch0: %{name}-libc-sysdeps-configure.patch +Patch0: gcc-pr25715.patch URL: http://gcc.gnu.org/ BuildRequires: autoconf BuildRequires: automake @@ -68,38 +58,10 @@ This package adds C++ support to the GNU Compiler Collection for PPC. Ten pakiet dodaje obs³ugê C++ do kompilatora gcc dla PPC. %prep -%setup -q -n gcc-%{version} -a1 -a2 -a3 -#setup -q -n gcc-4.0-%{_snap} -a1 -a2 -a3 -mv linuxthreads* glibc-%{_glibc_ver} +%setup -q -n gcc-%{version} %patch0 -p1 %build -FAKE_ROOT=$PWD/fake-root - -rm -rf $FAKE_ROOT && install -d $FAKE_ROOT/usr/include -cp -r linux-libc-headers-%{_llh_ver}/include/{asm-ppc,linux} $FAKE_ROOT/usr/include -ln -s asm-ppc $FAKE_ROOT/usr/include/asm - -cd glibc-%{_glibc_ver} -cp -f /usr/share/automake/config.* scripts -rm -rf builddir && install -d builddir && cd builddir -../configure \ - --prefix=$FAKE_ROOT/usr \ - --build=%{_target_platform} \ - --host=%{target} \ - --disable-nls \ - --enable-add-ons=linuxthreads \ - --with-headers=$FAKE_ROOT/usr/include \ - --disable-sanity-checks \ - --enable-hacker-mode - -%{__make} sysdeps/gnu/errlist.c -%{__make} install-headers - -install bits/stdio_lim.h $FAKE_ROOT/usr/include/bits -touch $FAKE_ROOT/usr/include/gnu/stubs.h -cd ../.. - cp -f /usr/share/automake/config.* . rm -rf obj-%{target} install -d obj-%{target} @@ -117,6 +79,7 @@ TEXCONFIG=false \ --libexecdir=%{_libdir} \ --disable-shared \ --disable-threads \ + --without-headers \ --enable-languages="c,c++" \ --enable-c99 \ --enable-long-long \ @@ -126,7 +89,6 @@ TEXCONFIG=false \ --with-demangler-in-ld \ --with-system-zlib \ --disable-multilib \ - --with-sysroot=$FAKE_ROOT \ --without-x \ --target=%{target} \ --host=%{_target_platform} \