Warning, /graphics/krita/3rdparty/ext_gsl/windows-no-fPIC.patch is written in an unsupported language. File is not indexed.
0001 diff --git a/CMakeLists.txt b/CMakeLists.txt
0002 index baf3946..c3f3ea4 100644
0003 --- a/CMakeLists.txt
0004 +++ b/CMakeLists.txt
0005 @@ -698,7 +698,7 @@ endforeach ()
0006 if (BUILD_SHARED_LIBS)
0007 include(CheckCCompilerFlag)
0008 check_c_compiler_flag(-fPIC HAVE_FPIC)
0009 - if (HAVE_FPIC)
0010 + if (HAVE_FPIC AND NOT WIN32)
0011 add_definitions(-fPIC)
0012 endif ()
0013 if (WIN32)
0014 @@ -791,7 +791,7 @@ if (GSL_INSTALL OR NOT DEFINED GSL_INSTALL)
0015 DESTINATION
0016 lib/cmake/${PACKAGE_NAME}-${PACKAGE_VERSION} )
0017 endif ()
0018 -if(NOT MSVC)
0019 +if(NOT WIN32)
0020 target_compile_options(gsl PRIVATE -fPIC)
0021 target_compile_options(gslcblas PRIVATE -fPIC)
0022 endif()