add make option -fstack-protector-strong
This commit is contained in:
parent
8040da8240
commit
8b6c781549
11
0002-libpfm-lib-Makefile.patch
Normal file
11
0002-libpfm-lib-Makefile.patch
Normal 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
|
||||||
@ -10,7 +10,8 @@ URL: http://perfmon2.sourceforge.net/
|
|||||||
|
|
||||||
Source0: http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{version}.tar.gz
|
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
|
BuildRequires: python3 python3-devel python3-setuptools swig gcc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user