deepin-anything/0001-change-compile-option.patch
liweiganga 9beb4a587f feat: enable debuginfo
(cherry picked from commit 36c0e733e17243d78736cf4fbb7b2d60e4b7d5d5)
2023-05-08 09:45:04 +08:00

48 lines
1.5 KiB
Diff

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