Skip to content

Commit

Permalink
fix the linker error on ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliao committed Jul 3, 2024
1 parent e923e2d commit 23dbd39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion 3rd-party/libssh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ set(LIBSSH_INCLUDE_DIRS
set(LIB_INSTALL_DIR lib)
set(BIN_INSTALL_DIR bin)

set(BUILD_SHARED_LIBS ON)
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# space instead of empty string because empty string restults in non-defined GLOBAL_CLIENT_CONFIG in config.h
set(GLOBAL_CLIENT_CONFIG " ")
set(GLOBAL_BIND_CONFIG "/etc/ssh/libssh_server_config")
Expand Down
6 changes: 0 additions & 6 deletions tests/libvirt/test_libvirt_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ TEST_F(LibVirtBackend, libvirt_wrapper_missing_libvirt_throws)
EXPECT_THROW(mp::LibvirtWrapper{"missing_libvirt"}, mp::LibvirtOpenException);
}

TEST_F(LibVirtBackend, libvirt_wrapper_missing_symbol_throws)
{
// Need to set LD_LIBRARY_PATH to this .so for the multipass_tests executable
EXPECT_THROW(mp::LibvirtWrapper{"libbroken_libvirt.so"}, mp::LibvirtSymbolAddressException);
}

TEST_F(LibVirtBackend, health_check_good_does_not_throw)
{
EXPECT_CALL(*mock_backend, check_for_kvm_support()).WillOnce(Return());
Expand Down

0 comments on commit 23dbd39

Please sign in to comment.