add -Werror -Wl,-z,noexecstack
This commit is contained in:
parent
178f17be10
commit
98561e7094
@ -4,7 +4,7 @@
|
||||
|
||||
Name: %{githubname}
|
||||
Version: %{githubver}
|
||||
Release: 5
|
||||
Release: 6
|
||||
Summary: Libbpf library
|
||||
|
||||
License: LGPLv2 or BSD
|
||||
@ -54,7 +54,7 @@ Requires: %{name}-devel = 2:%{version}-%{release}
|
||||
The %{name}-static package contains static library for
|
||||
developing applications that use %{name}
|
||||
|
||||
%global make_flags DESTDIR=%{buildroot} OBJDIR=%{_builddir} CFLAGS="%{build_cflags} -fPIC" LDFLAGS="%{build_ldflags} -Wl,--no-as-needed" LIBDIR=/%{_libdir} NO_PKG_CONFIG=1
|
||||
%global make_flags DESTDIR=%{buildroot} OBJDIR=%{_builddir} CFLAGS="%{build_cflags} -fPIC -Werror" LDFLAGS="%{build_ldflags} -Werror -Wl,--no-as-needed -Wl,-z,noexecstack" LIBDIR=/%{_libdir} NO_PKG_CONFIG=1
|
||||
|
||||
%prep
|
||||
%autosetup -n %{githubfull} -p1
|
||||
@ -78,6 +78,9 @@ developing applications that use %{name}
|
||||
%{_libdir}/libbpf.a
|
||||
|
||||
%changelog
|
||||
* Thu May 4 2023 zhangmingyi <zhangmingyi5@huawei.com> -2:0.3-6
|
||||
- add -Werror -Wl,-z,noexecstack options
|
||||
|
||||
* Tue Mar 21 2023 zhangmingyi <zhangmingyi5@huawei.com> - 2:0.3-5
|
||||
- backporting patches from upstream:
|
||||
backport-libbpf-Fix-crash-if-SEC-freplace-programs-don-t-have.patch
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user