From c7f326822c66fe520dcc596b22ebe6f74b258d99 Mon Sep 17 00:00:00 2001 From: Monday Date: Wed, 10 Jul 2024 08:44:30 +0000 Subject: [PATCH] =?UTF-8?q?!11=20=E5=A2=9E=E5=8A=A0debug=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: @licihua Reviewed-by: @jingxiaolu Signed-off-by: @jingxiaolu --- OpenCSD.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/OpenCSD.spec b/OpenCSD.spec index bfae963..5181519 100644 --- a/OpenCSD.spec +++ b/OpenCSD.spec @@ -1,7 +1,7 @@ Summary : An open source CoreSight(tm) Trace Decode library Name : OpenCSD Version : 1.3.3 -Release : 3 +Release : 4 License : BSD Source : %{name}-%{version}.tar.gz BuildRoot : %{_tmppath}/%{name}-%{version}-${release}-root @@ -15,19 +15,20 @@ BuildRequires : gcc-c++ make 3. Packet Decode : Convert the packets into fully decoded trace describing the program flow on a core. The library is implemented in C++ with an optional "C" API. -%global debug_package %{nil} %prep %setup -q %build -make -C decoder/build/linux CPPFLAGS="-fPIE" LDFLAGS="-s -pie -Wl,-z,defs" -j +export CFLAGS="$RPM_OPT_FLAGS -fPIE -pie" +export CXXFLAGS="$RPM_OPT_FLAGS -fPIE -pie" +make -C decoder/build/linux %{?_smp_mflags} %install rm -rf %{buildroot} -make -C decoder/build/linux install PREFIX=%{buildroot}/usr LIB_PATH=lib64 +make -C decoder/build/linux install PREFIX=%{buildroot}/usr LIB_PATH=%{_lib} DEF_SO_PERM=755 %clean @@ -35,7 +36,6 @@ rm -rf %{buildroot} %files -%defattr(-,root,root,0644) %doc README.md LICENSE %{_includedir}/opencsd %{_libdir}/libopencsd* @@ -44,6 +44,10 @@ rm -rf %{buildroot} %changelog +* Wed Apr 03 2024 guoqinglan - 1.3.3-4 +- enable debug package +- change permission from 644 to 755 + * Thu Mar 16 2023 huangfangrun - 1.3.3-3 - [Compile Option] Add -fPIE -s and -pie options