forked from pool/binutils
Accepting request 993764 from home:marxin:branches:devel:gcc
- Add binutils-2.39-branch.diff.gz. - Explicitly enable --enable-warn-execstack=yes and --enable-warn-rwx-segments=yes. - Add gprofng subpackage. OBS-URL: https://build.opensuse.org/request/show/993764 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=414
This commit is contained in:
parent
daae1fdd3d
commit
ad4fd8f04b
3
binutils-2.39-branch.diff.gz
Normal file
3
binutils-2.39-branch.diff.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:521f0bf2f86ae5682330ac7ca0c55c4098758666a3bd4626bbfa641882e3515e
|
||||
size 6851
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 8 11:43:14 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Add binutils-2.39-branch.diff.gz.
|
||||
- Explicitly enable --enable-warn-execstack=yes and --enable-warn-rwx-segments=yes.
|
||||
- Add gprofng subpackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 6 08:41:08 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
|
@ -117,6 +117,7 @@ Source: binutils-%{version}.tar.bz2
|
||||
Source2: binutils-%{version}.tar.bz2.sig
|
||||
Source3: binutils.keyring
|
||||
Source4: baselibs.conf
|
||||
Patch1: binutils-2.39-branch.diff.gz
|
||||
Patch3: binutils-skip-rpaths.patch
|
||||
Patch4: s390-biarch.diff
|
||||
Patch5: x86-64-biarch.patch
|
||||
@ -203,6 +204,14 @@ Group: Development/Tools/Building
|
||||
This package includes the libctf-nobfd shared library.
|
||||
The Compact C Type Format (CTF) is a way of representing information about a binary program
|
||||
|
||||
%package -n gprofng
|
||||
Summary: The next generation profiling tool for Linux
|
||||
License: GFDL-1.3-only AND GPL-3.0-or-later
|
||||
Group: Development/Tools/Building
|
||||
|
||||
%description -n gprofng
|
||||
The next generation profiling tool for Linux
|
||||
|
||||
%ifarch %arm
|
||||
%define HOST %{_target_cpu}-suse-linux-gnueabi
|
||||
%else
|
||||
@ -225,7 +234,7 @@ cp ld/ldgram.y ld/ldgram.y.orig
|
||||
|
||||
# Patch is outside test_vanilla because it's supposed to be the
|
||||
# patch bringing the tarball to the newest upstream version
|
||||
# %patch1 -p1
|
||||
%patch1 -p1
|
||||
%if !%{test_vanilla}
|
||||
%patch3 -p1
|
||||
%patch4
|
||||
@ -312,6 +321,10 @@ EXTRA_TARGETS="$EXTRA_TARGETS,aarch64-suse-linux"
|
||||
# rebuilding the same archive from unchanged .o files recreates
|
||||
# it, because timestamps in the .a are 0, unequal to the actual timestamp
|
||||
# of the .o files :-/
|
||||
#
|
||||
# Enable the following 2 configure options explicitly
|
||||
# (--enable-warn-execstack=yes, --enable-warn-rwx-segments=yes)
|
||||
# as they are not enabled by default for some targets (and we use --enable-targets=[many]).
|
||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||
--infodir=%{_infodir} --mandir=%{_mandir} \\\
|
||||
@ -346,9 +359,13 @@ cd build-dir
|
||||
--enable-shared \
|
||||
%if %{suse_version} > 1500
|
||||
--enable-pgo-build=lto \
|
||||
%endif
|
||||
%if %{suse_version} <= 1500
|
||||
--disable-gprofng \
|
||||
%endif
|
||||
--enable-obsolete \
|
||||
--disable-gprofng
|
||||
--enable-warn-execstack=yes \
|
||||
--enable-warn-rwx-segments=yes
|
||||
|
||||
# we patch headers (bfd-in.h) that are input to other headers
|
||||
# which are generated only with --enable-maintainer-mode (which we
|
||||
@ -671,6 +688,18 @@ fi;
|
||||
%files -n libctf-nobfd0
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libctf-nobfd.so.*
|
||||
|
||||
%if %{suse_version} > 1500
|
||||
%ifarch %ix86 x86_64 aarch64
|
||||
%files -n gprofng
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/gprofng/
|
||||
%{_libdir}/gprofng/lib*.so
|
||||
%{_libdir}/gprofng/lib*.so.*
|
||||
%{_distconfdir}/gprofng.rc
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user