Skip to content

Commit fee240c

Browse files
committed
update makefile
1 parent 9b05cd2 commit fee240c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apis/CTP/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CXX=clang
22
IFLAGS=-I../../ -I../../include/ -I../ -I./
3-
CFLAGS=$(IFLAGS)-std=c++11 -fPIC
3+
CFLAGS=$(IFLAGS)-std=c++11 -O3 -fPIC
44

55
DEPS=../../../XAPI2/languages/CPP/XAPI_CPP/XApiImpl.o \
66
../../../XAPI2/languages/CPP/XAPI_CPP/XApiCpp.o \
@@ -11,7 +11,7 @@ DEPS+=../../common/Queue/MsgQueue.o \
1111
../../common/Queue/RemoteQueue.o \
1212
../../include/ApiProcess.o
1313

14-
LFLAGS=-Wl,-R\$$ORIGIN -ldl -L../../include/CTP/linux64 -lthosttraderapi -lthostmduserapi
14+
LFLAGS=-Bsymbolic -Wl,-R\$$ORIGIN -ldl -L../../include/CTP/linux64 -lthosttraderapi -lthostmduserapi
1515
all: ctp_quote.so ctp_trade.so
1616

1717
%.o: %.cpp

tests/CPP/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CXX=clang++
22
C=clang
33
IFLAGS=-I../../ -I../../include/ -I../ -I./
4-
CFLAGS=$(IFLAGS)-std=c++11 -fPIC -pthread -g
4+
CFLAGS=$(IFLAGS)-std=c++11 -O3 -fPIC -pthread
55
DEPS=../../languages/CPP/XAPI_CPP/XApiImpl.o \
66
../../languages/CPP/XAPI_CPP/XApiCpp.o \
77
../../languages/CPP/XAPI_CPP/XApiC.o \
@@ -11,7 +11,7 @@ DEPS+=../../common/Queue/MsgQueue.o \
1111
../../common/Queue/RemoteQueue.o \
1212
../../include/ApiProcess.o
1313

14-
LFLAGS=-Wl,-R\$$ORIGIN -ldl -L../../include/CTP/linux64 -lthosttraderapi -lthostmduserapi
14+
LFLAGS=-Bsymbolic -Wl,-R\$$ORIGIN -ldl -L../../include/CTP/linux64 -lthosttraderapi -lthostmduserapi
1515

1616
all: CPP_TEST libQuantBox_CTP_Quote.so libQuantBox_CTP_Trade.so
1717

0 commit comments

Comments
 (0)