feat: enable debuginfo
(cherry picked from commit 36c0e733e17243d78736cf4fbb7b2d60e4b7d5d5)
This commit is contained in:
parent
c5db12c3a0
commit
9beb4a587f
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
|
%bcond_with check
|
||||||
%global _unpackaged_files_terminate_build 0
|
%global _unpackaged_files_terminate_build 0
|
||||||
%global debug_package %{nil}
|
|
||||||
%global common_description %{expand: Something like everything, but nothing is really like anything...}
|
%global common_description %{expand: Something like everything, but nothing is really like anything...}
|
||||||
%global dname dkms
|
%global dname dkms
|
||||||
%global lname libs
|
%global lname libs
|
||||||
@ -8,11 +7,12 @@
|
|||||||
|
|
||||||
Name: deepin-anything
|
Name: deepin-anything
|
||||||
Version: 5.0.9
|
Version: 5.0.9
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Something like everything, but nothing is really like anything...
|
Summary: Something like everything, but nothing is really like anything...
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://uos-packages.deepin.com/uos/pool/main/d/deepin-anything/
|
URL: https://uos-packages.deepin.com/uos/pool/main/d/deepin-anything/
|
||||||
Source0: %{name}-%{version}.orig.tar.xz
|
Source0: %{name}-%{version}.orig.tar.xz
|
||||||
|
Patch0: 0001-change-compile-option.patch
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: qt5-qtbase-devel
|
BuildRequires: qt5-qtbase-devel
|
||||||
@ -47,6 +47,7 @@ This package provides header files and libraries for %name.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup
|
||||||
|
%patch0 -p1
|
||||||
sed -i 's|lib/|lib64/|g' Makefile
|
sed -i 's|lib/|lib64/|g' Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -94,6 +95,9 @@ install -Dm644 server/monitor/deepin-anything-monitor.service %{buildroot}/usr/l
|
|||||||
%{_libdir}/pkgconfig/deepin-anything-server-lib.pc
|
%{_libdir}/pkgconfig/deepin-anything-server-lib.pc
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.0.9-1
|
||||||
- update to 5.0.9
|
- update to 5.0.9
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user