Skip to content

Commit 9513b0a

Browse files
committed
修复编译错误
1 parent 35df38f commit 9513b0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

make.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ function set_flag() {
2121
fi
2222
}
2323

24-
COMMON_FLAGS="-I ../include -shared -fPIC -s -O3 -ldl -lrt -lpthread"
25-
DEFAULT_CXXFLAGS="-std=c++11 $COMMON_FLAGS"
24+
COMMON_FLAGS="-I ../include -fPIC -O3"
25+
DEFAULT_CXXFLAGS="-std=c++11 -shared -s $COMMON_FLAGS"
2626
DEFAULT_CFLAGS="$COMMON_FLAGS"
27-
DEFAULT_LDFLAGS=""
27+
DEFAULT_LDFLAGS="-lpthread"
2828
DEFAULT_CXX=g++
2929
DEFAULT_CC=gcc
3030

0 commit comments

Comments
 (0)