From 4f3f598e6f3705936e09a0508b1e1bbbbbe683b3 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 20 七月 2020 17:46:40 +0800
Subject: [PATCH] change makefile

---
 queue/libshm_queue.a  |    0 
 queue/Makefile        |    6 ++++--
 queue/libshm_queue.so |    0 
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/queue/Makefile b/queue/Makefile
index c227d52..8c59c1b 100644
--- a/queue/Makefile
+++ b/queue/Makefile
@@ -38,10 +38,12 @@
 	$(AR) rv $@ $?
 	$(RANLIB) $@
 
+LDFLAGS += -L$(ROOT)/lib -lusgcommon
 #dynamic lib
-$(DLIBSQUEUE): $(SOURCES) $(ROOT)/lib/libusgcommon.so
+$(DLIBSQUEUE): $(SOURCES)
+#$(DLIBSQUEUE): $(SOURCES) $(ROOT)/lib/libusgcommon.so
 	rm -f *.o
-	$(CC) -fPIC -shared $(CFLAGS) $(LDFLAGS) $^ -o $@ 
+	$(CC) -fPIC -shared $(CFLAGS) $^ -o $@ $(LDFLAGS)
 	#$(CC) -fPIC -shared $(CFLAGS) $(LDFLAGS)  -o $@ $^ -Wl,--whole-archive $(ROOT)/lib/libusgcommon.a -Wl,--no-whole-archive 
 
 
diff --git a/queue/libshm_queue.a b/queue/libshm_queue.a
index 1b5c93b..0439de8 100644
--- a/queue/libshm_queue.a
+++ b/queue/libshm_queue.a
Binary files differ
diff --git a/queue/libshm_queue.so b/queue/libshm_queue.so
index c41b743..eaa0ad8 100755
--- a/queue/libshm_queue.so
+++ b/queue/libshm_queue.so
Binary files differ

--
Gitblit v1.8.0