Skip to content

Commit

Permalink
Fix for MKL symbol name clashing issue (apache#18855)
Browse files Browse the repository at this point in the history
This change enables symbol exclusion of statically
linked MKL libraries to avoid the name clashing issue.
  • Loading branch information
akarbown committed Sep 14, 2020
1 parent 0e29280 commit cfb0d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/FindMKL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ set(INTEL_ROOT "/opt/intel" CACHE PATH "Folder contains intel libs")
endif()

if(MKL_USE_STATIC_LIBS AND UNIX)
set(MKL_LIBRARIES -Wl,--start-group "${MKL_LIBRARIES}" -Wl,--end-group)
set(MKL_LIBRARIES -Wl,--exclude-libs,ALL -Wl,--start-group "${MKL_LIBRARIES}" -Wl,--end-group)
endif()


Expand Down

0 comments on commit cfb0d27

Please sign in to comment.