From: Prarit Bhargava prarit@redhat.com
redhat/kernel.spec.template: Link perf with --export-dynamic
Bugzilla: INTERNAL
commit 00702a636e319b2c3fe913f3b8a8cff51cf96ff6 Author: Michael Petlan mpetlan@redhat.com Date: Tue Nov 23 11:52:24 2021 +0100
redhat/kernel.spec.template: Link perf with --export-dynamic
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2006775 Upstream Status: RHEL only
As said in comment #6 of the BZ [1], all distribution applications should contain minidebuginfo.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=2006775#c6
Signed-off-by: Michael Petlan mpetlan@redhat.com
Signed-off-by: Prarit Bhargava prarit@redhat.com
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100755 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -2275,7 +2275,7 @@ InitBuildVars %global perf_build_extra_opts CORESIGHT=1 %endif %global perf_make \ - %{__make} %{?make_opts} EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" %{?cross_opts} -C tools/perf V=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 LIBBPF_DYNAMIC=1 LIBTRACEEVENT_DYNAMIC=1 %{?perf_build_extra_opts} prefix=%{_prefix} PYTHON=%{__python3} + %{__make} %{?make_opts} EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags} -Wl,-E" %{?cross_opts} -C tools/perf V=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 LIBBPF_DYNAMIC=1 LIBTRACEEVENT_DYNAMIC=1 %{?perf_build_extra_opts} prefix=%{_prefix} PYTHON=%{__python3} %if %{with_perf} # perf # make sure check-headers.sh is executable
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2021