!3 Add stack-protector-strong flag
Merge pull request !3 from sigui/sgs-own
This commit is contained in:
commit
78d7b7c4ab
12
uthash-2.0.2-add-stack-protector-strong-flag.patch
Normal file
12
uthash-2.0.2-add-stack-protector-strong-flag.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/libut/Makefile b/libut/Makefile
|
||||
index 6143588..f67ff06 100644
|
||||
--- a/libut/Makefile
|
||||
+++ b/libut/Makefile
|
||||
@@ -4,6 +4,7 @@ INCDIR=./include
|
||||
CFLAGS+=-I$(INCDIR)
|
||||
CFLAGS+=-Wall -Wextra
|
||||
CFLAGS+=-g
|
||||
+CFLAGS+=-fstack-protector-strong
|
||||
|
||||
libut.a: libut.o utvector.o utmm.o ringbuf.o
|
||||
ar r $@ $^
|
||||
@ -1,10 +1,11 @@
|
||||
Name: uthash
|
||||
Version: 2.0.2
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: Hash table for C structures
|
||||
License: BSD
|
||||
URL: https://github.com/troydhanson/uthash
|
||||
Source0: https://github.com/troydhanson/uthash/archive/v%{version}.tar.gz
|
||||
Patch6000: uthash-2.0.2-add-stack-protector-strong-flag.patch
|
||||
|
||||
BuildRequires: asciidoc
|
||||
Provides: libut == %{version}-%{release} libut-devel == %{version}-%{release}
|
||||
@ -37,7 +38,7 @@ Obsoletes: libut-doc <= %{version}-%{release}
|
||||
|
||||
%build
|
||||
cd doc/
|
||||
%make_build
|
||||
%make_build V=1
|
||||
cd ..
|
||||
|
||||
cd libut/
|
||||
@ -81,6 +82,9 @@ ln -s %{_libdir}/libut.so.0 %{buildroot}%{_libdir}/libut.so
|
||||
%exclude %{_prefix}/share/doc/uthash/README.md
|
||||
|
||||
%changelog
|
||||
* Tue Mar 18 2020 zhangtao <zhangtao221@huawei.com> - 2.0.2-7
|
||||
- Add stack-protector-strong flag
|
||||
|
||||
* Tue Dec 07 2019 lihao <lihao129@huawei.com> - 2.0.2-6
|
||||
- Package Init
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user