Skip to content

Commit

Permalink
fix: #4 build generates PIC even for static library
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Aug 26, 2022
1 parent f2554e9 commit 476364c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cryptopp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,6 @@ list(APPEND CRYPTOPP_MSVC_COMPILE_OPTIONS "/Zi")
list(APPEND CRYPTOPP_MSVC_COMPILE_OPTIONS "/GR")
list(APPEND CRYPTOPP_MSVC_COMPILE_OPTIONS "/EHsc")

# Enable PIC for all target machines except 32-bit i386 due to register
# pressures.
if(NOT CRYPTOPP_I386)
set(CMAKE_POSITION_INDEPENDENT_CODE 1)
endif()

# IBM XLC compiler options for AIX and Linux. Must use CMAKE_CXX_COMPILER here
# due to XLC 13.1 and LLVM front-end.
if(CMAKE_CXX_COMPILER MATCHES "xlC")
Expand Down

0 comments on commit 476364c

Please sign in to comment.