Andrew Kelley
fa940bafa2
std.zig.system.NativeTargetInfo: improve glibc version detection
...
Previously, this code would fail to detect glibc version because it
relied on libc.so.6 being a symlink which revealed the answer. On modern
distros, this is no longer the case.
This new strategy finds the path to libc.so.6 from /usr/bin/env, then
inspects the .dynstr section of libc.so.6, looking for symbols that
start with "GLIBC_2.". It then parses those as semantic versions and
takes the maximum value as the system-native glibc version.
closes #6469
see #11137
closes #12567
2022-09-08 20:52:49 -07:00
..
2022-04-27 11:10:52 +02:00
2022-08-24 15:41:27 -04:00
2022-08-26 17:30:07 +02:00
2022-08-22 11:19:20 +03:00
2022-08-22 11:19:20 +03:00
2022-05-09 18:51:46 +02:00
2022-08-22 11:19:20 +03:00
2022-08-22 11:19:20 +03:00
2022-08-22 11:16:36 +03:00
2022-08-22 11:19:20 +03:00
2022-06-25 21:27:56 -07:00
2022-05-11 15:43:18 -04:00
2022-08-27 11:17:48 +03:00
2022-07-23 13:52:16 +03:00
2022-09-04 18:45:20 +03:00
2022-07-23 15:30:12 +03:00
2022-05-04 21:26:48 +02:00
2022-07-13 16:10:41 -07:00
2022-08-22 11:19:20 +03:00
2022-08-30 13:02:17 +03:00
2022-07-28 23:22:44 -07:00
2022-06-25 21:27:56 -07:00
2022-08-22 11:19:20 +03:00
2021-12-16 19:08:58 -08:00
2022-01-01 12:47:08 +00:00
2021-10-04 23:48:55 -07:00
2022-08-22 13:55:00 +03:00
2022-07-26 11:25:49 -07:00
2022-09-08 20:52:49 -07:00
2022-05-06 22:40:57 -07:00
2022-08-10 22:28:05 -07:00
2021-11-30 23:32:47 +00:00
2022-04-19 19:42:15 -05:00
2022-03-30 20:38:01 -07:00
2022-08-22 11:19:20 +03:00
2022-08-16 20:35:03 +03:00
2022-05-11 18:41:23 -06:00
2022-03-01 13:28:47 -05:00
2022-08-22 15:11:34 -07:00
2022-08-19 16:45:15 -07:00
2022-08-27 11:17:48 +03:00
2022-05-27 16:43:33 -04:00
2022-08-31 19:30:51 +02:00
2022-06-11 23:49:33 +03:00
2021-08-24 12:25:09 -07:00
2022-07-01 13:18:08 +02:00
2021-11-30 23:32:47 +00:00
2022-08-23 21:11:02 -07:00
2022-08-23 21:11:02 -07:00
2022-05-27 16:43:33 -04:00
2022-08-27 11:17:48 +03:00
2022-08-05 15:41:03 +03:00
2021-09-01 17:54:06 -07:00
2021-11-30 23:32:47 +00:00
2022-08-22 11:19:20 +03:00
2022-08-15 11:25:51 +03:00
2022-04-20 17:18:06 -07:00
2022-01-07 00:06:06 -05:00
2022-08-22 11:19:20 +03:00
2022-05-11 15:43:18 -04:00
2022-04-14 10:12:45 -07:00
2022-07-24 11:51:59 +03:00
2022-08-22 11:19:20 +03:00
2021-08-24 12:25:09 -07:00
2022-08-31 16:01:35 +03:00
2022-08-03 21:19:41 +02:00
2022-08-24 15:57:44 -04:00
2022-08-24 17:18:29 -04:00
2022-08-27 11:17:48 +03:00
2022-08-27 11:17:48 +03:00
2022-07-25 22:04:30 +03:00
2021-11-09 18:31:03 -07:00
2022-09-01 15:13:07 -05:00
2022-08-22 11:19:20 +03:00
2022-08-17 16:36:02 -04:00
2022-08-22 11:19:20 +03:00
2022-07-22 19:25:38 +03:00
2022-07-25 22:04:30 +03:00
2022-05-26 21:58:19 -07:00
2022-08-30 13:02:17 +03:00
2022-06-03 20:21:20 +03:00
2022-07-25 22:04:30 +03:00
2022-09-07 15:22:30 +03:00
2022-03-10 13:13:17 -05:00
2021-12-19 00:24:45 -05:00
2022-08-30 10:42:21 +02:00
2022-05-11 15:43:18 -04:00
2022-08-18 20:34:36 -07:00
2022-07-25 15:51:22 +03:00
2022-08-30 22:31:47 -04:00
2022-05-27 16:43:33 -04:00
2022-04-15 17:01:01 -05:00
2022-06-17 21:04:21 +03:00
2022-06-11 11:02:56 +03:00
2022-01-07 00:06:06 -05:00
2022-01-04 17:59:05 +01:00
2022-06-11 23:49:33 +03:00
2022-08-18 18:58:28 -07:00