Add set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "-Wl,--no-as-needed") to CMakeLists.txt (#25445)
Summary:
This is a fix for a rare build issue on Ubuntu:
`symbol lookup error: miniconda3/envs/pytorch-py3.7/lib/libmkl_intel_lp64.so: undefined symbol: mkl_blas_dsyrk`
https://software.intel.com/en-us/articles/symbol-lookup-error-when-linking-intel-mkl-with-gcc-on-ubuntu
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25445
Differential Revision: D17151458
Pulled By: pbelevich
fbshipit-source-id: a0f3e86a05ac408b95446560f42fc16fbff2d7af