!12 fix strip problem

From: @MementoMoriCheng
Reviewed-by: @myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2021-09-12 16:00:30 +00:00 committed by Gitee
commit 6f919cea1a
2 changed files with 28 additions and 3 deletions

View File

@ -1,8 +1,6 @@
%global debug_package %{nil}
Name: lmbench
Version: 3
Release: 3
Release: 4
Summary: Tools for Performance Analysis
License: GPLv2
URL: http://www.bitmover.com/lmbench/
@ -12,6 +10,7 @@ Patch0: lmbench3-fix-llseek-and-remove-bk-in-Makefile.patch
Patch1: lmbench3-add-HOWTO-to-indicate-howto-use-this-package.patch
Patch2: Rpc-code-moved-from-glibc-to-libtirpc.patch
Patch3: lmbench3-add-sp-security-compiler-option.patch
Patch4: lmbench3-need-debug.patch
BuildRequires: gcc libtirpc-devel
@ -24,6 +23,7 @@ A userspace utility for testing the memory subsystem for faults. It's portable a
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%make_build
@ -60,6 +60,9 @@ install -m 0644 results/Makefile %{buildroot}/opt/%{name}/results
/opt/%{name}/*
%changelog
* Thu Stp 9 2021 Shaowei Cheng <chenshaowei3@huawei.com> - 3-4
- need debug
* Mon Jul 12 2021 stevending1st <stevending1st@163.com> - 3-3
- Add SP security compiler option.

22
lmbench3-need-debug.patch Normal file
View File

@ -0,0 +1,22 @@
From 8a9ba9910e58fb4d837eff51e18abd91dbc99488 Mon Sep 17 00:00:00 2001
From: si-gui <245140120@qq.com>
Date: Fri, 10 Sep 2021 23:42:26 +0800
Subject: [PATCH] need debug
---
scripts/build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/build b/scripts/build
index 200d58e..7be068d 100755
--- a/scripts/build
+++ b/scripts/build
@@ -249,4 +249,4 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR}; fi
# now go ahead and build everything!
-${MAKE} OS="${OS}" CC="${CC}" CFLAGS="${CFLAGS} -fstack-protector-strong" LDLIBS="${LDLIBS}" O="${BINDIR}" $*
+${MAKE} OS="${OS}" CC="${CC}" CFLAGS="${CFLAGS} -fstack-protector-strong -g" LDLIBS="${LDLIBS}" O="${BINDIR}" $*
--
2.30.0