Fix make to follow fedora's build
This way proper CFLAGS/LDFLAGS are passed and annocheck is ok. Related: rhbz#2012774
This commit is contained in:
parent
839141257f
commit
dee5f1bf4c
@ -9,7 +9,7 @@
|
||||
|
||||
Name: libbpf
|
||||
Version: 0.5.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Libbpf library
|
||||
|
||||
License: LGPLv2 or BSD
|
||||
@ -48,7 +48,7 @@ developing applications that use %{name}
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
%global libbpf_make \
|
||||
make EXTRA_CFLAGS="${RPM_OPT_FLAGS}" EXTRA_LDFLAGS="%{__global_ldflags}" DESTDIR=%{buildroot} V=1
|
||||
make DESTDIR=%{buildroot} OBJDIR=%{_builddir} CFLAGS="%{build_cflags} -fPIC" LDFLAGS="%{build_ldflags} -Wl,--no-as-needed" LIBDIR=/%{_libdir} NO_PKG_CONFIG=1
|
||||
|
||||
%prep
|
||||
%setup -n %{source}
|
||||
@ -76,6 +76,10 @@ popd
|
||||
%{_libdir}/libbpf.a
|
||||
|
||||
%changelog
|
||||
* Fri Oct 11 2021 Jiri Olsa <jolsa@redhat.com> - 2:0.5.0-2
|
||||
- Fix passing of system's CFLAGS/LDFLAGS
|
||||
- Related: rhbz#2012774
|
||||
|
||||
* Fri Oct 1 2021 Jiri Olsa <jolsa@redhat.com> - 2:0.5.0-1
|
||||
- update to RHEL spec
|
||||
- Related: rhbz#2009725
|
||||
|
Loading…
Reference in New Issue
Block a user