Skip to content

Commit aa3c2f7

Browse files
committed
CMake: fix the $ORIGIN problem
ld does not seem to follow the $ORIGIN in recursive dependencies properly. The workaround is to specify the recursive dependencies (in this case openssl, libidn) explicitly, then the rpath is properly constructed and things work at link time. Also add full include paths to the dependencies.
1 parent 34c798a commit aa3c2f7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pkgs/cmake.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extends: [autotools_package]
22

33
dependencies:
4-
build: [zlib, bzip2, curl]
4+
build: [zlib, bzip2, curl, openssl, libidn]
55

66
sources:
77
- key: tar.gz:vxuu43rwaodxivs7flwyqzsbkrbuit5x
@@ -26,6 +26,9 @@ build_stages:
2626
'--system-zlib',
2727
'--',
2828
'-DCMAKE_PREFIX_PATH=${CURL_DIR}/lib;${ZLIB_DIR}/lib;${BZIP2_DIR}/lib',
29+
'-DCURL_INCLUDE_DIR=${CURL_DIR}/include',
30+
'-DZLIB_INCLUDE_DIR=${ZLIB_DIR}/include',
31+
'-DBZIP2_INCLUDE_DIR=${BZIP2_DIR}/include',
2932
]
3033

3134
when_build_dependency:

0 commit comments

Comments
 (0)