!3 Add stack-protector-strong flag

Merge pull request !3 from sigui/sgs-own
This commit is contained in:
openeuler-ci-bot 2020-03-18 11:16:16 +08:00 committed by Gitee
commit 78d7b7c4ab
2 changed files with 18 additions and 2 deletions

View 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 $@ $^

View File

@ -1,10 +1,11 @@
Name: uthash Name: uthash
Version: 2.0.2 Version: 2.0.2
Release: 6 Release: 7
Summary: Hash table for C structures Summary: Hash table for C structures
License: BSD License: BSD
URL: https://github.com/troydhanson/uthash URL: https://github.com/troydhanson/uthash
Source0: https://github.com/troydhanson/uthash/archive/v%{version}.tar.gz Source0: https://github.com/troydhanson/uthash/archive/v%{version}.tar.gz
Patch6000: uthash-2.0.2-add-stack-protector-strong-flag.patch
BuildRequires: asciidoc BuildRequires: asciidoc
Provides: libut == %{version}-%{release} libut-devel == %{version}-%{release} Provides: libut == %{version}-%{release} libut-devel == %{version}-%{release}
@ -37,7 +38,7 @@ Obsoletes: libut-doc <= %{version}-%{release}
%build %build
cd doc/ cd doc/
%make_build %make_build V=1
cd .. cd ..
cd libut/ cd libut/
@ -81,6 +82,9 @@ ln -s %{_libdir}/libut.so.0 %{buildroot}%{_libdir}/libut.so
%exclude %{_prefix}/share/doc/uthash/README.md %exclude %{_prefix}/share/doc/uthash/README.md
%changelog %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 * Tue Dec 07 2019 lihao <lihao129@huawei.com> - 2.0.2-6
- Package Init - Package Init