]> git.ipfire.org Git - ipfire-3.x.git/blame - binutils/binutils.nm
binutils: Update to 2.39
[ipfire-3.x.git] / binutils / binutils.nm
CommitLineData
166a6c21 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
166a6c21
MT
4###############################################################################
5
802ea3af 6name = binutils
5be519d0 7version = 2.39
4c4a5d3c 8release = 1
166a6c21 9
802ea3af
MT
10maintainer = Michael Tremer <michael.tremer@ipfire.org>
11groups = Development/Tools
12url = http://www.gnu.org/software/binutils/
13license = GPLv2+
14summary = The GNU Binutils are a collection of binary tools.
166a6c21 15
802ea3af
MT
16description
17 The GNU Binary Utilities, or binutils, is a collection of programming
166a6c21 18 tools for the manipulation of object code in various object file formats.
802ea3af
MT
19end
20
3e4070b5
MT
21source_dl = https://ftp.gnu.org/gnu/binutils/ \
22 https://sourceware.org/pub/binutils/releases/
23sources = %{thisapp}.tar.xz
802ea3af
MT
24
25build
26 requires
27 bison
28 dejagnu
29 flex
30 gcc-c++
602900c1 31 perl
802ea3af
MT
32 texinfo
33 zlib-devel
34 end
35
36 prepare_cmds
37 mkdir -pv %{DIR_SRC}/binutils-build
802ea3af
MT
38 end
39
bb86d46e 40 configure_options += \
f71c9576
MT
41 --build=%{DISTRO_BUILDTARGET} \
42 --host=%{DISTRO_BUILDTARGET} \
bb86d46e
MT
43 --target=%{DISTRO_BUILDTARGET} \
44 --disable-werror \
f71c9576
MT
45 --disable-static \
46 --enable-64-bit-bfd \
47 --enable-plugins \
5be519d0 48 --with-bugurl="https://bugzilla.ipfire.org/" \
3e4070b5
MT
49 --enable-relro=yes \
50 --enable-lto
802ea3af
MT
51
52 build
68b0def9
MT
53 cd %{DIR_SRC}/binutils-build
54 ../%{thisapp}/configure \
bb86d46e 55 %{configure_options}
68b0def9
MT
56
57 make tooldir=/usr %{PARALLELISMFLAGS}
802ea3af
MT
58 end
59
0c98d65a
MT
60 test
61 cd %{DIR_SRC}/binutils-build
62 make -k check </dev/null || :
63
64 echo "==== RESULTS ===="
65 cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum
66 end
802ea3af
MT
67
68 install
0c98d65a
MT
69 cd %{DIR_SRC}/binutils-build
70 make tooldir=/usr install DESTDIR=%{BUILDROOT}
802ea3af
MT
71
72 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
d5518e81
MT
73
74 # Prevent packages from linking against libbfd and libopcodes,
75 # because they change too often.
bb86d46e 76 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
0c98d65a
MT
77
78 # Remove Windows/Novell only man pages.
79 rm -vf %{BUILDROOT}%{mandir}/man1/{dlltool,nlmconv,windres}*
802ea3af 80 end
68b0def9
MT
81
82 # Keep static version of libiberty.
83 keep_libraries
bb86d46e 84 %{libdir}/libiberty.a
68b0def9 85 end
802ea3af
MT
86end
87
88packages
89 package %{name}
e5e21531
MT
90 provides
91 bundled(libiberty)
92 end
93 end
974699b4
MT
94
95 package %{name}-devel
96 template DEVEL
f45434a7 97
e5e21531
MT
98 requires
99 binutils = %{thisver}
100 zlib-devel
101 end
102
f45434a7
MT
103 # Don't package libbfd and libopcodes in the -devel package.
104 files
105 /usr/include
56c5b2e4 106 %{libdir}/*.a
f45434a7 107 end
802ea3af 108 end
1f9bc2f0
MT
109
110 package %{name}-debuginfo
111 template DEBUGINFO
112 end
802ea3af 113end