Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 9983cb9

Browse files
authored
Merge pull request #2 from StochasticTree/linux_build_hotfix
Added fPIC compile flag (for linux build)
2 parents 3d2dfed + fb1e735 commit 9983cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ endif()
1919
if(UNIX OR MINGW OR CYGWIN)
2020
set(
2121
CMAKE_CXX_FLAGS
22-
"${CMAKE_CXX_FLAGS} -pthread -w"
22+
"${CMAKE_CXX_FLAGS} -pthread -w -fPIC"
2323
)
2424
if(USE_DEBUG)
2525
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")

0 commit comments

Comments
 (0)