Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Conversation

@chouquette
Copy link

Test build at: https://gitlab.ddbuild.io/DataDog/datadog-agent/-/pipelines/22337037

Let pkg-config do its job instead. This fix a potential issue (most likely only
in more recent toolchains than the one we use in the build images) where curl
would explicitly depend on the absolute path to its dependencies, causing it to
link with /path/to/libfoo.so instead of -lfoo
When linking with an absolute path, the linker appears to not include the rpath
information, which causes linking errors down the line:

2023-10-25T15:16:09+00:00 | /opt/toolchains/bin/../lib/gcc/x86_64-unknown-linux-gnu/11.4.0/../../../../x86_64-unknown-linux-gnu/bin/ld.bfd: warning: libnghttp2.so.14, needed by ../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)

@chouquette chouquette force-pushed the chouquette/fix_curl_deps_rpath branch 4 times, most recently from dc20471 to e5e9f7b Compare October 30, 2023 08:15
Let pkg-config do its job instead. This fix a potential issue (most likely only
in more recent toolchains than the one we use in the build images) where curl
would explicitly depend on the absolute path to its dependencies, causing it to
link with /path/to/libfoo.so instead of -lfoo
When linking with an absolute path, the linker appears to not include the rpath
information, which causes linking errors down the line:
2023-10-25T15:16:09+00:00 | /opt/toolchains/bin/../lib/gcc/x86_64-unknown-linux-gnu/11.4.0/../../../../x86_64-u
nknown-linux-gnu/bin/ld.bfd: warning: libnghttp2.so.14, needed by
../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)
It's not default enabled to this doesn't have include any behavior change,
however we are now sure that libidn will not be enabled in curl if we were to
start building it
with-ssl was deprecated in 7bdec2a08bf025d2f66c168111d47df6b21890d9
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants