Fix a build warning in onnxruntime python extension (#416)

This commit is contained in:
Changming Sun 2019-02-01 00:19:41 -08:00 committed by Pranav Sharma
parent d369ff945d
commit 9f0298261d
2 changed files with 5 additions and 0 deletions

View file

@ -49,6 +49,8 @@ if(APPLE)
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker -exported_symbols_list ${ONNXRUNTIME_ROOT}/python/exported_symbols.lst")
elseif(UNIX)
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker --version-script=${ONNXRUNTIME_ROOT}/python/version_script.lds -Xlinker --no-undefined")
else()
set(ONNXRUNTIME_SO_LINK_FLAG "-DEF:${ONNXRUNTIME_ROOT}/python/pybind.def")
endif()
set(onnxruntime_pybind11_state_libs

View file

@ -0,0 +1,3 @@
LIBRARY "onnxruntime_pybind11_state.pyd"
EXPORTS
PyInit_onnxruntime_pybind11_state @1