This commit is contained in:
2023-08-30 20:50:01 +08:00
parent 40e3df54a9
commit 63992e1238

View File

@@ -63,7 +63,7 @@ if (HAVE_STRERROR_R)
endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/utils_config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/utils_config.h")
if (${CMAKE_C_COMPILER_ID} STREQUAL GNU)
if ("${CMAKE_C_COMPILER_ID}" STREQUAL GNU)
add_compile_options(-fPIC)
endif()