代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/scalapack 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
diff -up scalapack-2.2.0/scalapack-2.2.0/BLACS/INSTALL/CMakeLists.txt.picfix scalapack-2.2.0/scalapack-2.2.0/BLACS/INSTALL/CMakeLists.txt
--- scalapack-2.2.0/scalapack-2.2.0/BLACS/INSTALL/CMakeLists.txt.picfix 2022-03-19 09:36:24.691840631 -0400
+++ scalapack-2.2.0/scalapack-2.2.0/BLACS/INSTALL/CMakeLists.txt 2022-03-19 09:36:33.501891327 -0400
@@ -2,3 +2,4 @@ cmake_minimum_required(VERSION 2.8)
project(INSTALL C Fortran)
add_executable(xintface Fintface.f Cintface.c)
+set_property(TARGET xintface PROPERTY POSITION_INDEPENDENT_CODE TRUE)
diff -up scalapack-2.2.0/scalapack-2.2.0/CMakeLists.txt.picfix scalapack-2.2.0/scalapack-2.2.0/CMakeLists.txt
--- scalapack-2.2.0/scalapack-2.2.0/CMakeLists.txt.picfix 2022-03-19 09:36:42.285941877 -0400
+++ scalapack-2.2.0/scalapack-2.2.0/CMakeLists.txt 2022-03-19 09:37:25.964193237 -0400
@@ -110,6 +110,21 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${SCA
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${SCALAPACK_BINARY_DIR}/lib)
# --------------------------------------------------
+# By default static library
+function (invertBoolean varName varValue)
+ if (${varValue})
+ set(${varName} false PARENT_SCOPE)
+ else ()
+ set(${varName} true PARENT_SCOPE)
+ endif ()
+endfunction ()
+option(BUILD_SHARED_LIBS "Build shared libraries" OFF )
+invertBoolean("BUILD_STATIC_LIBS" ${BUILD_SHARED_LIBS})
+if ((${BUILD_SHARED_LIBS} EQUAL ON) AND NOT CMAKE_POSITION_INDEPENDENT_CODE)
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+endif ()
+
+# --------------------------------------------------
# Check for any necessary platform specific compiler flags
include( CheckBLACSCompilerFlags )
CheckBLACSCompilerFlags()
@@ -183,11 +198,6 @@ message(STATUS "LAPACK library: ${LAPACK
MESSAGE(STATUS "=========")
# --------------------------------------------------
-# By default static library
-OPTION(BUILD_SHARED_LIBS "Build shared libraries" OFF )
-OPTION(BUILD_STATIC_LIBS "Build static libraries" ON )
-
-# --------------------------------------------------
# Subdirectories that need to be processed
macro(append_subdir_files variable dirname)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。