All pastes #900234 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-02-11 19:37 UTC
rendered paste body
Summary: Binutils, necessary for a system!
Name: binutils
Version: 2.18
Release: 1
License: GPL
Group: System/Base
Source0: http://ftp.gnu.org/gnu/binutils/%{name}-%{version}.tar.bz2
Patch0:  http://www.linuxfromscratch.org/patches/lfs/development/%{name}-%{version}-configure-1.patch
BuildRoot: %{_tmppath}/%{name}-buildroot

%description
The Binutils package contains a linker, an assembler, and other tools for handling object files.

%prep
%patch -p1 -b .buildroot
%setup -q -c


%build
mkdir binutils-build
cd binutils-build
CFLAGS="-pipe -O2 -march=i686" \
CXXFLAGS="-pipe -O2 -march=i686" \
../%{name}-%{version}/configure --prefix=/usr \
    --enable-shared
make -j6 tooldir=/usr

%install
cd glibc-build
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc

make install_root=$RPM_BUILD_ROOT tooldir=/usr install

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
/*