Skip to content

Commit

Permalink
Merge pull request #99 from qzhuyan/fix-static-atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan authored Jun 19, 2022
2 parents 747e1ba + 3750396 commit 81806d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ add_subdirectory(msquic)
add_library(quicer_static STATIC ${SOURCES})
target_include_directories(quicer_static PRIVATE ${Erlang_OTP_ROOT_DIR}/usr/include/ msquic/src/inc/)
if (CMAKE_SYSTEM_NAME MATCHES Linux)
target_link_libraries(quicer_static PRIVATE core platform inc warnings logging "-Wl,--no-gc-sections")
# note, the value of ${ATOMIC} will be set by msquic
target_link_libraries(quicer_static PRIVATE core platform inc warnings logging ${ATOMIC} "-Wl,--no-gc-sections")
elseif (CMAKE_SYSTEM_NAME MATCHES Darwin)
target_link_libraries(quicer_static PRIVATE core platform inc warnings "-Wl,-undefined,dynamic_lookup -Wl,-dead_strip")
endif()
Expand Down

0 comments on commit 81806d4

Please sign in to comment.