mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
depends: add NO_HARDEN option
Add an option that when passed, will disable hardening options, and pass `--disable-hardening` through to configure. Due to the way we link libssp for Windows builds, they now fail (after #27118), if building with depends, and configuring with --disable-hardening. See: https://github.com/bitcoin/bitcoin/pull/27118#issuecomment-1492606272. This change would add a depends opiton such that, if someone wants to build with, for windows, without hardening, they can do so. This may also be useful when building for debugging.
This commit is contained in:
@@ -82,6 +82,10 @@ if test -z "$enable_lto" && test -n "@lto@"; then
|
||||
enable_lto=yes
|
||||
fi
|
||||
|
||||
if test -z "$enable_hardening" && test -n "@no_harden@"; then
|
||||
enable_hardening=no
|
||||
fi
|
||||
|
||||
PKG_CONFIG="$(which pkg-config) --static"
|
||||
|
||||
PKG_CONFIG_PATH="${depends_prefix}/share/pkgconfig:${depends_prefix}/lib/pkgconfig"
|
||||
|
||||
Reference in New Issue
Block a user