mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-04 00:02:01 -04:00
Always build "internal" library as static (#1725)
* Always build oqs-internal library as static Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
This commit is contained in:
parent
d03535006c
commit
1bc6d11ef4
@ -63,7 +63,7 @@ add_library(oqs kem/kem.c
|
||||
${COMMON_OBJS})
|
||||
|
||||
# Internal library to be used only by test programs
|
||||
add_library(oqs-internal ${INTERNAL_OBJS})
|
||||
add_library(oqs-internal STATIC ${INTERNAL_OBJS})
|
||||
|
||||
if(DEFINED SANITIZER_LD_FLAGS)
|
||||
target_link_libraries(oqs PUBLIC ${SANITIZER_LD_FLAGS})
|
||||
|
@ -64,6 +64,10 @@ target_link_libraries(example_kem PRIVATE ${TEST_DEPS})
|
||||
|
||||
add_executable(kat_kem kat_kem.c test_helpers.c)
|
||||
target_link_libraries(kat_kem PRIVATE ${TEST_DEPS})
|
||||
if(CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_NAME STREQUAL "Windows" AND BUILD_SHARED_LIBS)
|
||||
# workaround for Windows .dll cross-compiling
|
||||
target_link_options(kat_kem PRIVATE -Wl,--allow-multiple-definition)
|
||||
endif()
|
||||
|
||||
add_executable(test_kem test_kem.c)
|
||||
target_link_libraries(test_kem PRIVATE ${TEST_DEPS})
|
||||
@ -82,6 +86,10 @@ target_link_libraries(example_sig PRIVATE ${TEST_DEPS})
|
||||
|
||||
add_executable(kat_sig kat_sig.c test_helpers.c)
|
||||
target_link_libraries(kat_sig PRIVATE ${TEST_DEPS})
|
||||
if(CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_NAME STREQUAL "Windows" AND BUILD_SHARED_LIBS)
|
||||
# workaround for Windows .dll cross-compiling
|
||||
target_link_options(kat_sig PRIVATE -Wl,--allow-multiple-definition)
|
||||
endif()
|
||||
|
||||
add_executable(test_sig test_sig.c)
|
||||
target_link_libraries(test_sig PRIVATE ${TEST_DEPS})
|
||||
|
Loading…
x
Reference in New Issue
Block a user