diff options
author | NIIBE Yutaka <[email protected]> | 2022-02-01 01:12:06 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-02-01 01:12:06 +0000 |
commit | 433aba9e778ebe9500c29ae1ae34999d48e98a19 (patch) | |
tree | aa3da6d6ff2ea10e8d5b14188aa3811a5af69932 | |
parent | Post release updates (diff) | |
download | libgpg-error-433aba9e778ebe9500c29ae1ae34999d48e98a19.tar.gz libgpg-error-433aba9e778ebe9500c29ae1ae34999d48e98a19.zip |
build,tests: Fix detection of have_lock_optimization.
* configure.ac: Lock optimization (without sys/single_threaded.h) is
only known to work on GNU system, using weak symbol.
--
Fixes-commit: 50e0f32b19356fd7c64c799192379ff2204cd8a3
GnuPG-bug-id: 5699
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index ba6c370..9db9678 100644 --- a/configure.ac +++ b/configure.ac @@ -637,9 +637,9 @@ if test "$gl_threads_api" = posix; then if test x$ac_cv_header_sys_single_threaded_h = xyes; then have_lock_optimization=yes else - case "$gl_cv_have_weak" in - *yes) have_lock_optimization=yes ;; - * ) ;; + case "${host_os}" in + *-gnu*) have_lock_optimization=yes ;; + * ) ;; esac fi fi |