astream/0001-add-g-option-to-compile-the-code.patch
2022-09-05 16:52:11 +08:00

37 lines
950 B
Diff

From aa5bfaa117ebe48366e614177abeaddbeb1fb0c0 Mon Sep 17 00:00:00 2001
From: hongrongxuan <389817374@qq.com>
Date: Mon, 5 Sep 2022 16:50:52 +0800
Subject: [PATCH] add -g option to compile the code
---
src/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Makefile b/src/Makefile
index 1d9d63e..b1f20c0 100755
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,10 +4,10 @@ PREFIX=/usr
BINDIR=$(PREFIX)/bin
astream : astream.c astream.h astream_log.o
- cc -Wall -o astream astream.c astream_log.o
+ cc -g -Wall -o astream astream.c astream_log.o
astream_log.o : astream_log.c astream_log.h
- cc -Wall -c astream_log.c
+ cc -g -Wall -c astream_log.c
install:
install -d $(DESTDIR)$(BINDIR)
@@ -16,4 +16,4 @@ install:
uninstall:
rm -f $(DESTDIR)$(BINDIR)/$(PROG)
clean:
- rm -f astream astream.o astream_log.o
\ No newline at end of file
+ rm -f astream astream.o astream_log.o
--
2.36.1