提交 57b30c2b 编写于 作者: L Luo Tao

fix compiler error when using shared library, disable testing static library

上级 37765adb
......@@ -59,9 +59,10 @@ if(WITH_STATIC_LIB)
"-Wl,--no-whole-archive"
${PADDLE_LIB}/contrib/inference/libpaddle_inference_api.a)
else()
# Note: libpaddle_inference_api.so must put before libpaddle_fluid.so
set(DEPS
${PADDLE_LIB}/paddle/fluid/inference/libpaddle_fluid.so
${PADDLE_LIB}/contrib/inference/libpaddle_inference_api.so)
${PADDLE_LIB}/contrib/inference/libpaddle_inference_api.so
${PADDLE_LIB}/paddle/fluid/inference/libpaddle_fluid.so)
endif()
set(EXTERNAL_LIB "-lrt -ldl -lpthread")
......
......@@ -11,7 +11,7 @@ fi
mkdir -p build
cd build
for WITH_STATIC_LIB in true false; do
for WITH_STATIC_LIB in false; do
rm -rf *
cmake .. -DPADDLE_LIB=${PADDLE_ROOT}/build/fluid_install_dir/ \
-DWITH_MKL=$WITH_MKL \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册