Skip to content

Commit

Permalink
Enable linux dynamic lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Antrapol committed Apr 16, 2024
1 parent 3c7271a commit 4790a91
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(OQS_ENABLE_KEM_NTRUPRIME)
add_subdirectory(kem/ntruprime)
set(KEM_OBJS ${KEM_OBJS} ${NTRUPRIME_OBJS})
endif()
# # # ## OQS_COPY_FROM_UPSTREAM_FRAGMENT_ADD_ALG_OBJECTS_START
# # # # # OQS_COPY_FROM_UPSTREAM_FRAGMENT_ADD_ALG_OBJECTS_START
if(OQS_ENABLE_KEM_CLASSIC_MCELIECE)
add_subdirectory(kem/classic_mceliece)
set(KEM_OBJS ${KEM_OBJS} ${CLASSIC_MCELIECE_OBJS})
Expand Down Expand Up @@ -54,7 +54,7 @@ if(OQS_ENABLE_SIG_SPHINCS)
add_subdirectory(sig/sphincs)
set(SIG_OBJS ${SIG_OBJS} ${SPHINCS_OBJS})
endif()
# # # ## OQS_COPY_FROM_UPSTREAM_FRAGMENT_ADD_ALG_OBJECTS_END
# # # # # OQS_COPY_FROM_UPSTREAM_FRAGMENT_ADD_ALG_OBJECTS_END

if(OQS_ENABLE_SIG_KAZ_SIGN)
add_subdirectory(sig/kaz_sign)
Expand All @@ -80,7 +80,9 @@ endif()
target_link_libraries(oqs-internal PRIVATE "-lgmp")
set_target_properties(oqs-internal PROPERTIES LINK_FLAGS "-lgmp")

target_link_libraries(oqs PRIVATE libgmp)
#target_link_libraries(oqs PRIVATE libgmp)
target_link_libraries(oqs PRIVATE "-lgmp")
set_target_properties(oqs PROPERTIES LINK_FLAGS "-lgmp")

if(DEFINED SANITIZER_LD_FLAGS)
target_link_libraries(oqs PUBLIC ${SANITIZER_LD_FLAGS})
Expand Down

0 comments on commit 4790a91

Please sign in to comment.