diff --git a/uthash-2.0.2-add-stack-protector-strong-flag.patch b/uthash-2.0.2-add-stack-protector-strong-flag.patch new file mode 100644 index 0000000..b1cb632 --- /dev/null +++ b/uthash-2.0.2-add-stack-protector-strong-flag.patch @@ -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 $@ $^ diff --git a/uthash.spec b/uthash.spec index 78c33dd..cd87144 100644 --- a/uthash.spec +++ b/uthash.spec @@ -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 - 2.0.2-7 +- Add stack-protector-strong flag + * Tue Dec 07 2019 lihao - 2.0.2-6 - Package Init