Skip to content

build: Add epoll-shim library directory - #225

Open
Fudmottin wants to merge 1 commit into
OCEAN-xyz:masterfrom
Fudmottin:cmake-epoll-shim-library-dir
Open

build: Add epoll-shim library directory#225
Fudmottin wants to merge 1 commit into
OCEAN-xyz:masterfrom
Fudmottin:cmake-epoll-shim-library-dir

Conversation

@Fudmottin

Copy link
Copy Markdown

epoll-shim is discovered through pkg-config when native epoll_wait() is unavailable. The existing CMake configuration propagates the package's include directories and library names, but not its library search directories.

Add ${EPOLL_SHIM_LIBRARY_DIRS} to target_link_directories() so the linker can locate epoll-shim when it is installed outside the default library search path.

This is required for the Homebrew epoll-shim package on macOS. Systems with native epoll_wait() leave the variable empty, and the existing epoll-shim detection and library selection are otherwise unchanged.

Tested as part of a successful macOS arm64 build and end-to-end DATUM Gateway run with a local Bitcoin node and BitAxe miner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant