compile library add -lm

pull/48/head^2
yuqing 2015-08-07 09:19:50 +08:00
parent 70aa4378ea
commit 10d96d407d
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
Version 5.07 2015-07-22 Version 5.07 2015-08-07
* schedule task add the "second" field * schedule task add the "second" field
* make.sh changed, you must upgrade libfastcommon to V1.18 or later * make.sh changed, you must upgrade libfastcommon to V1.20 or later
Version 5.06 2015-05-12 Version 5.06 2015-05-12
* compile passed in mac OS Darwin * compile passed in mac OS Darwin

View File

@ -23,7 +23,7 @@
int g_fdfs_connect_timeout = DEFAULT_CONNECT_TIMEOUT; int g_fdfs_connect_timeout = DEFAULT_CONNECT_TIMEOUT;
int g_fdfs_network_timeout = DEFAULT_NETWORK_TIMEOUT; int g_fdfs_network_timeout = DEFAULT_NETWORK_TIMEOUT;
char g_fdfs_base_path[MAX_PATH_SIZE] = {'/', 't', 'm', 'p', '\0'}; char g_fdfs_base_path[MAX_PATH_SIZE] = {'/', 't', 'm', 'p', '\0'};
Version g_fdfs_version = {5, 6}; Version g_fdfs_version = {5, 7};
bool g_use_connection_pool = false; bool g_use_connection_pool = false;
ConnectionPool g_connection_pool; ConnectionPool g_connection_pool;
int g_connection_pool_max_idle_time = 3600; int g_connection_pool_max_idle_time = 3600;

View File

@ -63,11 +63,11 @@ else
CFLAGS="$CFLAGS -O3" CFLAGS="$CFLAGS -O3"
fi fi
LIBS='' LIBS='-lm'
if [ $OS_BITS -eq 64 ]; then if [ $OS_BITS -eq 64 ]; then
LIBS='-L/usr/lib64' LIBS="$LIBS -L/usr/lib64"
else else
LIBS='-L/usr/lib' LIBS="$LIBS -L/usr/lib"
fi fi
uname=$(uname) uname=$(uname)