Build EigenBlas as static library (#44747)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/43709

Pull Request resolved: https://github.com/pytorch/pytorch/pull/44747

Reviewed By: ezyang

Differential Revision: D23717927

Pulled By: malfet

fbshipit-source-id: c46fbcf5a55895cb984dd4c5301fbcb784fc17d5
This commit is contained in:
Nikita Shulga
2020-09-16 10:19:18 -07:00
committed by Facebook GitHub Bot
parent b63b684394
commit a5cc151b8c

View File

@ -43,7 +43,7 @@ set(EigenBlas_SRCS
${EIGEN_BLAS_SRC_DIR}/f2c/complexdots.c
)
add_library(eigen_blas ${EigenBlas_SRCS})
add_library(eigen_blas STATIC ${EigenBlas_SRCS})
# We build static versions of eigen blas but link into a shared library, so they need PIC.
set_property(TARGET eigen_blas PROPERTY POSITION_INDEPENDENT_CODE ON)