Files
MINGW-packages/mingw-w64-yaml-cpp/010-no-fPIC.patch
Rosen Penev 74062ace95 yaml-cpp: fix compilation with clang64
fPIC was causing issues. Fix by using the CMAKE variable instead.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-02 17:17:42 -07:00

11 lines
308 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -156,7 +156,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
set(GCC_EXTRA_OPTIONS "")
#
if(YAML_BUILD_SHARED_LIBS)
- set(GCC_EXTRA_OPTIONS "${GCC_EXTRA_OPTIONS} -fPIC")
endif()
#
set(FLAG_TESTED "-Wextra -Wshadow -Weffc++ -pedantic -pedantic-errors")