From fb1289e6d069e1a0f14dd45ba07720f09e90ab56 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 14 七月 2020 18:34:11 +0800
Subject: [PATCH] update

---
 queue/Makefile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/queue/Makefile b/queue/Makefile
index c9a9e38..e26b381 100644
--- a/queue/Makefile
+++ b/queue/Makefile
@@ -29,13 +29,14 @@
 
 #static lib
 $(LIBSQUEUE): $(OBJS)
-	$(AR) rv $@ $? $(ROOT)/lib/libusgcommon.a
+	$(AR) rv $@ $?
 	$(RANLIB) $@
 
 #dynamic lib
 $(DLIBSQUEUE): $(SOURCES)
 	rm -f *.o
-	$(CC) -fPIC -shared $(CFLAGS) $^ -o $@ $(LDFLAGS) $(ROOT)/lib/libusgcommon.so
+	$(CC) -fPIC -shared $(CFLAGS) $^ -o $@ $(LDFLAGS)
+	#$(CC) -fPIC -shared $(CFLAGS) $(LDFLAGS)  -o $@ $^ -Wl,--whole-archive $(ROOT)/lib/libusgcommon.a -Wl,--no-whole-archive 
 
 
 #PREFIX is environment variable, but if it is not set, then set default value

--
Gitblit v1.8.0