Skip to content

Commit

Permalink
hp77 | Fix version script not available on macos (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
hp77-creator authored Jul 31, 2024
1 parent 88a7958 commit f41ddc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/agent/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ else()
add_dependencies(bpftime-agent FridaGum spdlog::spdlog bpftime_frida_uprobe_attach_impl)
endif()
set_target_properties(bpftime-agent PROPERTIES CXX_STANDARD 20 LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/agent.version)
if(UNIX AND NOT APPLE)
target_link_options(bpftime-agent PRIVATE -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/agent.version)
endif()
if(${BPFTIME_BUILD_WITH_LIBBPF})
target_include_directories(bpftime-agent
PRIVATE
Expand Down
2 changes: 2 additions & 0 deletions runtime/syscall-server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ target_include_directories(bpftime-syscall-server
)
endif()
set_target_properties(bpftime-syscall-server PROPERTIES CXX_STANDARD 20 LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/syscall-server.version)
if(UNIX AND NOT APPLE)
target_link_options(bpftime-syscall-server PRIVATE -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/syscall-server.version)
endif()
if(${ENABLE_EBPF_VERIFIER})
add_dependencies(bpftime-syscall-server bpftime-verifier)
target_link_libraries(bpftime-syscall-server PRIVATE bpftime-verifier)
Expand Down

0 comments on commit f41ddc8

Please sign in to comment.