Skip to content

Commit

Permalink
linux: fix compiling error
Browse files Browse the repository at this point in the history
  • Loading branch information
zebin-wu committed Dec 21, 2023
1 parent 348de60 commit f112bb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
- name: Run unit tests
run: |
cd build
./platform/linux/homekit-bridge \
./homekit-bridge \
-d tests_scripts \
test
2 changes: 1 addition & 1 deletion platform/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(CONFIG_POSIX)
endif()

if(CONFIG_OPENSSL)
target_link_libraries(platform_linux PRIVATE platform::openssl ssl crypto)
target_link_libraries(platform_linux PRIVATE platform::openssl ssl crypto pthread)
endif()

if(CONFIG_MBEDTLS)
Expand Down
1 change: 1 addition & 0 deletions third_party/lua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ if(${PLATFORM} STREQUAL linux)
target_compile_definitions(lua PUBLIC
LUA_USE_LINUX
)
target_link_libraries(lua PRIVATE m dl)
endif()

# compile host luac
Expand Down

0 comments on commit f112bb4

Please sign in to comment.