add make option -fstack-protector-strong

This commit is contained in:
yinzhenling 2020-03-18 15:57:32 +08:00
parent 8040da8240
commit 8b6c781549
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- libpfm-4.10.1/lib/Makefile.old 2020-03-18 14:33:35.048208359 +0800
+++ libpfm-4.10.1/lib/Makefile 2020-03-18 14:35:00.276038441 +0800
@@ -33,7 +33,7 @@ ifeq ($(SYS),Linux)
SRCS += pfmlib_perf_event_pmu.c pfmlib_perf_event.c pfmlib_perf_event_raw.c
endif
-CFLAGS+=-D_REENTRANT -I. -fvisibility=hidden
+CFLAGS+=-D_REENTRANT -I. -fvisibility=hidden -fstack-protector-strong
#
# list all library support modules

View File

@ -10,7 +10,8 @@ URL: http://perfmon2.sourceforge.net/
Source0: http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{version}.tar.gz
Patch1: 0001-libpfm-python3-setup.patch
Patch0001: 0001-libpfm-python3-setup.patch
Patch0002: 0002-libpfm-lib-Makefile.patch
BuildRequires: python3 python3-devel python3-setuptools swig gcc
%description