将maat依赖库的链接在编译.so时进行。不在调用者链接。

This commit is contained in:
zhengchao
2015-11-13 13:48:16 +08:00
parent e57e020196
commit 76cdf5eaab
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ CC = gcc
CCC = g++ CCC = g++
CFLAGS = -Wall -g -fPIC CFLAGS = -Wall -g -fPIC
CFLAGS += $(OPTFLAGS) CFLAGS += $(OPTFLAGS)
LDFLAGS = -lMESA_handle_logger -lMESA_htable -lpthread -lm LDFLAGS = -lMESA_handle_logger -lMESA_htable -lpthread -lm -lrulescan -lpcre
MAILLIB = ../lib MAILLIB = ../lib
G_H_DIR =../inc_internal G_H_DIR =../inc_internal

View File

@@ -1,4 +1,4 @@
LIBS=../lib/libmaatframe.so -lMESA_handle_logger -lMESA_htable -lrulescan -lpcre -lpthread LIBS=../lib/libmaatframe.so
INC=-I../inc/ -I/usr/include/MESA/ INC=-I../inc/ -I/usr/include/MESA/
all: all:
g++ -o maat_test -g -Wall maat_test.cpp $(INC) $(LIBS) g++ -o maat_test -g -Wall maat_test.cpp $(INC) $(LIBS)