mirror of
https://github.com/libssh2/libssh2.git
synced 2026-01-27 00:18:12 +03:00
Also replace manual `-fPIC` C flag with `-DCMAKE_POSITION_INDEPENDENT_CODE=ON`. It makes it pass it to C++, which is necessary for BoringSSL after this bump. Fixes: ``` /usr/bin/ld: /home/runner/usr/lib/libcrypto.a(crypto.cc.o): warning: relocation against `stderr@@GLIBC_2.2.5' in read-only section `.text' /usr/bin/ld: /home/runner/usr/lib/libcrypto.a(urandom.cc.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value ``` https://github.com/libssh2/libssh2/actions/runs/13065421829/job/36456862458#step:27:23 Closes #1530