mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-22 06:28:36 +02:00
add CMAKE_POSITION_INDEPENDENT_CODE
fix `/usr/bin/ld: bin/libxmr-stak-backend.a(jconf.cpp.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC`
This commit is contained in:
@@ -358,6 +358,8 @@ endif()
|
||||
|
||||
include_directories(BEFORE .)
|
||||
|
||||
set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
# remove warnings that f_open() is not save and f_open_s should be used
|
||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||
|
||||
Reference in New Issue
Block a user