diff options
author | Damien Miller <djm@mindrot.org> | 2023-12-18 04:49:11 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-12-18 04:49:11 +0100 |
commit | 59d691b886c79e70b1d1c4ab744e81fd176222fd (patch) | |
tree | cd06e8849c605bac35706a60db7e9c65dd75d8cc /configure.ac | |
parent | upstream: when invoking KnownHostsCommand to determine the order of (diff) | |
download | openssh-59d691b886c79e70b1d1c4ab744e81fd176222fd.tar.xz openssh-59d691b886c79e70b1d1c4ab744e81fd176222fd.zip |
better detection of broken -fzero-call-used-regs
Use OSSH_CHECK_CFLAG_LINK() for detection of these flags and extend
test program to exercise varargs, which seems to catch more stuff.
ok dtucker@
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 36e1028e1..379cd746b 100644 --- a/configure.ac +++ b/configure.ac @@ -234,9 +234,9 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then # clang 17 has a different bug that causes an ICE when using this # flag at all (https://bugzilla.mindrot.org/show_bug.cgi?id=3629) case "$CLANG_VER" in - apple-15*) OSSH_CHECK_CFLAG_COMPILE([-fzero-call-used-regs=used]) ;; + apple-15*) OSSH_CHECK_CFLAG_LINK([-fzero-call-used-regs=used]) ;; 17*) ;; - *) OSSH_CHECK_CFLAG_COMPILE([-fzero-call-used-regs=used]) ;; + *) OSSH_CHECK_CFLAG_LINK([-fzero-call-used-regs=used]) ;; esac OSSH_CHECK_CFLAG_COMPILE([-ftrivial-auto-var-init=zero]) fi |