!12 enable debuginfo for fix strip
From: @HelloWorld_lvcongqing Reviewed-by: @weidongkl Signed-off-by: @weidongkl
This commit is contained in:
commit
b41e1994f9
47
0001-change-compile-option.patch
Normal file
47
0001-change-compile-option.patch
Normal file
@ -0,0 +1,47 @@
|
||||
From 6ca8ed226186256b5e016a0fbcdacc5abe79ece4 Mon Sep 17 00:00:00 2001
|
||||
From: leeffo <leeffo@yeah.net>
|
||||
Date: Mon, 13 Mar 2023 17:50:03 +0800
|
||||
Subject: [PATCH] change compile option
|
||||
|
||||
---
|
||||
cli/Makefile | 2 +-
|
||||
kernelmod/Makefile | 2 +-
|
||||
library/Makefile | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/cli/Makefile b/cli/Makefile
|
||||
index 3aaa54e..66b8cee 100644
|
||||
--- a/cli/Makefile
|
||||
+++ b/cli/Makefile
|
||||
@@ -1,4 +1,4 @@
|
||||
-CFLAGS := -std=gnu99 -Wall -I../library/inc -I../library/inc/index -I../kernelmod -Iinc
|
||||
+CFLAGS := -g -std=gnu99 -Wall -I../library/inc -I../library/inc/index -I../kernelmod -Iinc
|
||||
LDFLAG := -lpthread -lanything
|
||||
|
||||
all: release debug
|
||||
diff --git a/kernelmod/Makefile b/kernelmod/Makefile
|
||||
index ae4fd62..dc39a01 100644
|
||||
--- a/kernelmod/Makefile
|
||||
+++ b/kernelmod/Makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
obj-m += vfs_monitor.o
|
||||
vfs_monitor-objs := vfs_utils.o arg_extractor.o vfs_change.o vfs_kretprobes.o
|
||||
-ccflags-y := -std=gnu99 -Wno-declaration-after-statement -O3
|
||||
+ccflags-y := -g -std=gnu99 -Wno-declaration-after-statement -O3
|
||||
cwd := $(shell pwd)
|
||||
|
||||
kdir := /lib/modules/$(shell uname -r)/build
|
||||
diff --git a/library/Makefile b/library/Makefile
|
||||
index b9308ee..50b99b5 100644
|
||||
--- a/library/Makefile
|
||||
+++ b/library/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
CC := gcc
|
||||
-CFLAGS := -std=gnu99 -Wall -Wl,--no-undefined -Iinc -Iinc/index -shared -fPIC -fvisibility=hidden
|
||||
+CFLAGS := -g -std=gnu99 -Wall -Wl,--no-undefined -Iinc -Iinc/index -shared -fPIC -fvisibility=hidden
|
||||
LDFLAG := -lpthread
|
||||
|
||||
all: release debug
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
%bcond_with check
|
||||
%global _unpackaged_files_terminate_build 0
|
||||
%global debug_package %{nil}
|
||||
%global common_description %{expand: Something like everything, but nothing is really like anything...}
|
||||
%global dname dkms
|
||||
%global lname libs
|
||||
@ -8,11 +7,12 @@
|
||||
|
||||
Name: deepin-anything
|
||||
Version: 5.0.9
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Something like everything, but nothing is really like anything...
|
||||
License: GPLv3
|
||||
URL: https://uos-packages.deepin.com/uos/pool/main/d/deepin-anything/
|
||||
Source0: %{name}-%{version}.orig.tar.xz
|
||||
Patch0: 0001-change-compile-option.patch
|
||||
|
||||
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
@ -47,6 +47,7 @@ This package provides header files and libraries for %name.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%patch0 -p1
|
||||
sed -i 's|lib/|lib64/|g' Makefile
|
||||
|
||||
%build
|
||||
@ -94,6 +95,9 @@ install -Dm644 server/monitor/deepin-anything-monitor.service %{buildroot}/usr/l
|
||||
%{_libdir}/pkgconfig/deepin-anything-server-lib.pc
|
||||
|
||||
%changelog
|
||||
* Mon Mar 13 2023 liweiganga <liweiganga@uniontech.com> - 5.0.9-2
|
||||
- enable debuginfo
|
||||
|
||||
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.0.9-1
|
||||
- update to 5.0.9
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user