1 |
commit: 93db41e8d06902f3a6b75003df5e81f83846e500 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 6 00:21:47 2021 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 00:21:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=93db41e8 |
7 |
|
8 |
build: drop support for ancient C library versions |
9 |
|
10 |
We don't need to support glibc versions that predate Linux-2.6. |
11 |
|
12 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
13 |
|
14 |
configure.ac | 12 ------------ |
15 |
localdecls.h | 13 ++----------- |
16 |
2 files changed, 2 insertions(+), 23 deletions(-) |
17 |
|
18 |
diff --git a/configure.ac b/configure.ac |
19 |
index c1aa576..a353e0a 100644 |
20 |
--- a/configure.ac |
21 |
+++ b/configure.ac |
22 |
@@ -307,18 +307,6 @@ dnl uClibc doesn't currently provide dlvsym() so lets |
23 |
dnl verify the toolchain supports it |
24 |
AC_CHECK_FUNCS([dlvsym]) |
25 |
|
26 |
-dnl when using libc5, (f)trucate's offset argument type is size_t with |
27 |
-dnl libc5, but it's off_t with libc6 (glibc2). |
28 |
-AC_MSG_CHECKING([truncate argument type]) |
29 |
-AC_EGREP_HEADER([truncate.*size_t], [unistd.h], |
30 |
- [dnl |
31 |
- AC_MSG_RESULT([size_t]) |
32 |
- AC_DEFINE([TRUNCATE_T], [size_t], [truncate arg type]) |
33 |
- ],[dnl |
34 |
- AC_MSG_RESULT([off_t]) |
35 |
- AC_DEFINE([TRUNCATE_T], [off_t], [truncate arg type]) |
36 |
-]) |
37 |
- |
38 |
dnl Check if libc provides RTLD_NEXT |
39 |
AC_MSG_CHECKING([for RTLD_NEXT]) |
40 |
AC_TRY_COMPILE([ |
41 |
|
42 |
diff --git a/localdecls.h b/localdecls.h |
43 |
index ecc5856..6b727ff 100644 |
44 |
--- a/localdecls.h |
45 |
+++ b/localdecls.h |
46 |
@@ -11,9 +11,8 @@ |
47 |
/* take care of broken ld loading */ |
48 |
#if defined(__GLIBC__) && !defined(__UCLIBC__) |
49 |
|
50 |
-# if __GLIBC__ <= 2 && __GLIBC_MINOR__ <= 2 |
51 |
-# define BROKEN_RTLD_NEXT |
52 |
-# define LIBC 5 |
53 |
+# if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 2) |
54 |
+# error "glibc-2.3+ required" |
55 |
# endif |
56 |
|
57 |
# if !defined(BROKEN_RTLD_NEXT) |
58 |
@@ -22,14 +21,6 @@ |
59 |
# endif |
60 |
# endif |
61 |
|
62 |
-#else |
63 |
- |
64 |
-#if 0 |
65 |
-# if defined(__FreeBSD__) |
66 |
-# define BROKEN_RTLD_NEXT |
67 |
-# endif |
68 |
-#endif |
69 |
- |
70 |
#endif |
71 |
|
72 |
#ifdef PATH_MAX |