Skip to content

build: fix linking to libsodium on macOS#7908

Merged
rustyrussell merged 1 commit intoElementsProject:masterfrom
fanquake:lib_sodium_not_found_macos
Jan 22, 2025
Merged

build: fix linking to libsodium on macOS#7908
rustyrussell merged 1 commit intoElementsProject:masterfrom
fanquake:lib_sodium_not_found_macos

Conversation

@fanquake
Copy link
Contributor

@fanquake fanquake commented Dec 5, 2024

Currently (using master) on I see link failures like the following:

./configure
<snip>
checking for libsodium with IETF chacha20 variants... yes
<snip>
ar libccan.a
ld ccan/ccan/cdump/tools/cdump-enumstr
ld: library 'sodium' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The configure check passes under Clang here. Switch to using pkg-conf(ig) to track down the libs.

Changelog-Fixed: build: fix linking against libsodium on macOS.

Currently on I see link failures like the following:
```bash
./configure
<snip>
checking for libsodium with IETF chacha20 variants... yes
<snip>
ar libccan.a
ld ccan/ccan/cdump/tools/cdump-enumstr
ld: library 'sodium' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

The configure check passes under Clang here.

Changelog-Fixed: build: fix linking against libsodium on macOS.
@rustyrussell rustyrussell added this to the v25.02 milestone Jan 22, 2025
@rustyrussell rustyrussell merged commit 305c377 into ElementsProject:master Jan 22, 2025
@fanquake fanquake deleted the lib_sodium_not_found_macos branch January 23, 2025 09:44
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.

2 participants