Skip to content

Commit a928eaa

Browse files
committed
Update: 修复linux编译失败问题
1 parent 007b392 commit a928eaa

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,6 @@ third_party/lua/src/liblua.so
8484
src/proto/msg_id.proto
8585
src/struct/msg_id.h
8686
src/struct/msg_id.cc
87-
src/proto/n_msg_id.proto
87+
src/proto/n_msg_id.proto
88+
third_party/libevent/test/regress.gen.c
89+
third_party/libevent/test/regress.gen.h

tools/build_third_party.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function build_lua()
148148
check_err
149149
cp ./src/*.dylib ../build/lib
150150
else
151-
make linux
151+
make linux CFLAGS="-fPIC"
152152
check_err
153153
cp ./src/*.so ../build/lib
154154
fi

tools/install_dev_env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ fi
2222
echo "Current LinuxDistro $LinuxDistro"
2323

2424
if [ $LinuxDistro == "Debian" ] || [ $LinuxDistro == "Ubuntu" ] || [ $LinuxDistro == "Raspbian" ]; then
25-
$sudo apt-get update
26-
$sudo apt-get -y git cmake unzip automake make gcc g++ libtool pkg-config
27-
$sudo apt-get -y install libreadline-dev libssl-dev libncurses-dev
25+
$sudo apt update
26+
$sudo apt install -y git cmake unzip automake make gcc g++ libtool pkg-config
27+
$sudo apt install -y libreadline-dev libssl-dev libncurses-dev python3
2828

2929
elif [ $LinuxDistro == "CentOS" ] || [ $LinuxDistro == "RHEL" ] || [ $LinuxDistro == "Fedora" ] || [ $LinuxDistro == "Aliyun" ]; then
3030
$sudo yum -y install cmake unzip automake make

0 commit comments

Comments
 (0)