1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 04:37:46 +00:00

Build baseeconde and cotp as static libraries

This commit is contained in:
Joshua Goins 2022-09-07 23:26:23 -04:00
parent e5371f04e9
commit 64dd7cb3ec
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ set(SOURCE_FILES src/base32.c src/base64.c)
set(CMAKE_C_FLAGS "-Wall -Werror -fPIC")
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES})
target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS})
target_include_directories(${PROJECT_NAME} PUBLIC src)

View file

@ -26,7 +26,7 @@ set(SOURCE_FILES src/otp.c)
set(CMAKE_C_FLAGS "-Wall -Wextra -O3 -Wno-format-truncation -fstack-protector-strong -fPIC")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3")
add_library(cotp SHARED ${SOURCE_FILES})
add_library(cotp STATIC ${SOURCE_FILES})
target_link_libraries(cotp ${GCRYPT_LIBRARIES} baseencode)
target_include_directories(cotp PUBLIC src)