Skip to content

Commit

Permalink
Added fix for position-independent code on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
gpu committed Nov 26, 2017
1 parent abeb0f7 commit 621c21d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMake_c_flag_overrides.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ if(MSVC)
elseif(ANDROID)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fpermissive")
elseif(CMAKE_HOST_UNIX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -ldl")
endif()
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
endif()
4 changes: 2 additions & 2 deletions CMake_cxx_flag_overrides.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ if(MSVC)
elseif(ANDROID)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
elseif(CMAKE_HOST_UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -ldl")
endif()
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
endif()

0 comments on commit 621c21d

Please sign in to comment.