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

Commit e5e9f7b

Browse files
committed
curl: don't provide path to dependencies
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)
1 parent 9865257 commit e5e9f7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/software/curl.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
"--without-gnutls",
5151
"--without-librtmp",
5252
"--without-libssh2",
53-
"--with-ssl=#{install_dir}/embedded",
54-
"--with-zlib=#{install_dir}/embedded",
55-
"--with-nghttp2=#{install_dir}/embedded",
53+
"--with-ssl",
54+
"--with-zlib",
55+
"--with-nghttp2",
5656
]
5757
configure(*configure_options, env: env)
5858

0 commit comments

Comments
 (0)