Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hiberis:mingw
mingw32-cross-binutils
mingw-cross-binutils.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw-cross-binutils.spec of Package mingw32-cross-binutils
%define _mingw mingw Name: %{_mingw}-cross-binutils Version: 2.21 Release: 0 Summary: MinGW Windows binutils License: GPLv2+ and LGPLv2+ and GPLv3+ and LGPLv3+ Group: Development/Libraries URL: http://www.mingw.org/ Source0: http://dl.sourceforge.net/sourceforge/mingw/binutils-%{version}.tar.bz2 Patch0: binutils-2.21-oom.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #!BuildIgnore: post-build-checks BuildRequires: flex BuildRequires: bison BuildRequires: texinfo BuildRequires: %{_mingw}-filesystem >= 38 # NB: This must be left in. Requires: %{_mingw}-filesystem >= 38 %description MinGW Windows binutils (utilities like 'strip', 'as', 'ld') which understand Windows executables and DLLs. %prep %setup -q -n binutils-%{version} %patch0 -p1 -b .oom %build mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ ../configure \ --build=%_build --host=%_host \ --target=%{_%{_mingw}_target} \ --verbose --disable-nls \ --without-included-gettext \ --disable-win32-registry \ --disable-werror \ --with-sysroot=%{_%{_mingw}_sysroot} \ --prefix=%{_prefix} --bindir=%{_bindir} \ --includedir=%{_includedir} --libdir=%{_libdir} \ --mandir=%{_mandir} --infodir=%{_infodir} make %{?_smp_mflags} all || make all %install rm -rf $RPM_BUILD_ROOT cd build make DESTDIR=$RPM_BUILD_ROOT install # These files conflict with ordinary binutils. rm -rf $RPM_BUILD_ROOT%{_infodir} rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty* for i in ar as dlltool ld ld.bfd nm objcopy objdump ranlib strip; do rm -f ${RPM_BUILD_ROOT}%{_bindir}/%{_%{_mingw}_target}-$i; ln -s %{_prefix}/%{_%{_mingw}_target}/bin/$i ${RPM_BUILD_ROOT}%{_bindir}/%{_%{_mingw}_target}-$i; done %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_mandir}/man1/* %{_bindir}/%{_%{_mingw}_target}-* %{_prefix}/%{_%{_mingw}_target}/bin %{_prefix}/%{_%{_mingw}_target}/lib/ldscripts %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor