0002-Remove-traces-of-Sun-lposix4.patch
text/x-patch
Filename: 0002-Remove-traces-of-Sun-lposix4.patch
Type: text/x-patch
Part: 1
Message:
Minor configure/meson cleanup
Patch
Format: format-patch
Series: patch 0002
Subject: Remove traces of Sun -lposix4.
| File | + | − |
|---|---|---|
| configure | 1 | 1 |
| configure.ac | 1 | 1 |
| meson.build | 1 | 2 |
From 865bb8a85627c14ec69a8a919486f06cbd45b0fb Mon Sep 17 00:00:00 2001
From: Thomas Munro <thomas.munro@gmail.com>
Date: Mon, 7 Aug 2023 13:56:41 +1200
Subject: [PATCH 2/2] Remove traces of Sun -lposix4.
This was a library on ancient Solaris systems, which was eventually
replaced with -lrt. Both are obsolete, as the relevant symbols moved
into the C library long ago.
---
configure | 2 +-
configure.ac | 2 +-
meson.build | 3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index 9ea188bc9b..3ee4801a35 100755
--- a/configure
+++ b/configure
@@ -12163,7 +12163,7 @@ return clock_gettime ();
return 0;
}
_ACEOF
-for ac_lib in '' rt posix4; do
+for ac_lib in '' rt; do
if test -z "$ac_lib"; then
ac_res="none required"
else
diff --git a/configure.ac b/configure.ac
index e36c1aee5a..314bdb5273 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1285,7 +1285,7 @@ AC_SEARCH_LIBS(socket, [socket ws2_32])
AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt])
AC_SEARCH_LIBS(shm_open, rt)
AC_SEARCH_LIBS(shm_unlink, rt)
-AC_SEARCH_LIBS(clock_gettime, [rt posix4])
+AC_SEARCH_LIBS(clock_gettime, rt)
# Cygwin:
AC_SEARCH_LIBS(shmget, cygipc)
# *BSD:
diff --git a/meson.build b/meson.build
index b7e67264e1..734ad37906 100644
--- a/meson.build
+++ b/meson.build
@@ -2364,7 +2364,6 @@ rt_dep = cc.find_library('rt', required: false)
dl_dep = cc.find_library('dl', required: false)
util_dep = cc.find_library('util', required: false)
-posix4_dep = cc.find_library('posix4', required: false)
getopt_dep = cc.find_library('getopt', required: false)
gnugetopt_dep = cc.find_library('gnugetopt', required: false)
@@ -2398,7 +2397,7 @@ endif
func_checks = [
['_configthreadlocale', {'skip': host_system != 'windows'}],
['backtrace_symbols', {'dependencies': [execinfo_dep]}],
- ['clock_gettime', {'dependencies': [rt_dep, posix4_dep], 'define': false}],
+ ['clock_gettime', {'dependencies': [rt_dep], 'define': false}],
['copyfile'],
# gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
# when enabling asan the dlopen check doesn't notice that -ldl is actually
--
2.41.0