David Heidelberg
46091832d8
util/process_test: make the error variable static
...
Make the `error` variable static to prevent a clash with
the glibc error() function when LTO is used.
Fixes the LTO build.
Otherwise, it'll fail in the linking phase with a conflict:
```
[411/2321] Linking target src/util/process_test
FAILED: src/util/process_test
c++ -o src/util/process_test src/util/process_test.p/tests_process_test.c.o -flto -Wl,--as-needed -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--start-group src/util/libmesa_util.a src/util/format/libmesa_format.a src/util/libmesa_util_sse41.a src/c11/impl/libmesa_util_c11.a subprojects/perfetto/libperfetto.a /usr/lib/x86_64-linux-gnu/libz.so -pthread -lm -ldl /usr/lib/x86_64-linux-gnu/libunwind.so -Wl,--end-group
mold: error: symbol type mismatch: error
>>> defined in /tmp/process_test.SLc9I6.ltrans0.ltrans.o as STT_OBJECT
>>> defined in /lib/x86_64-linux-gnu/libc.so.6 as STT_FUNC
```
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21511 >
2023-02-24 13:30:09 +01:00
..
2023-02-01 03:24:23 +00:00
2023-02-09 03:27:34 +00:00
2022-03-21 17:57:15 +00:00
2023-02-24 13:30:09 +01:00
2022-12-18 14:35:59 -05:00
2023-02-22 03:22:50 +00:00
2023-01-27 15:28:45 +00:00
2022-08-12 16:34:32 +00:00
2022-08-12 16:34:32 +00:00
2022-08-30 04:28:34 +00:00
2022-06-02 13:09:16 +00:00
2022-11-22 15:42:15 +08:00
2022-07-07 12:25:05 +00:00
2022-04-22 19:38:52 +00:00
2021-11-16 10:02:08 -06:00
2022-11-24 04:33:07 +00:00
2021-03-19 19:33:59 +00:00
2021-03-19 19:33:59 +00:00
2022-03-21 17:57:15 +00:00
2022-03-21 17:57:15 +00:00
2022-09-29 23:40:18 +00:00
2022-09-29 23:40:18 +00:00
2022-11-15 20:35:55 +00:00
2022-11-15 20:35:55 +00:00
2022-11-15 20:35:55 +00:00
2023-02-13 22:18:23 +00:00
2023-02-01 02:47:30 +00:00
2023-02-01 02:47:30 +00:00
2022-11-14 23:00:03 +00:00
2022-12-01 16:55:31 +00:00
2023-01-30 21:17:25 +00:00
2021-05-14 11:00:52 +00:00
2022-07-06 11:23:18 +00:00
2022-06-02 13:09:16 +00:00
2022-06-02 13:09:16 +00:00
2021-08-14 21:44:32 +00:00
2023-01-26 13:06:27 +00:00
2023-01-23 18:31:48 +00:00
2023-01-19 03:25:55 +00:00
2022-10-18 23:20:25 +00:00
2022-11-04 19:28:19 +00:00
2023-01-25 21:21:17 +00:00
2022-11-04 23:20:02 +00:00
2022-11-04 23:20:02 +00:00
2021-11-02 11:02:18 -07:00
2022-06-02 13:09:16 +00:00
2022-11-14 20:13:20 +00:00
2022-07-28 10:10:44 +00:00
2023-02-22 17:55:40 +00:00
2023-02-22 17:55:40 +00:00
2023-02-18 00:44:43 +00:00
2023-01-19 03:25:55 +00:00
2022-10-20 03:04:56 +00:00
2023-02-01 02:47:30 +00:00
2023-02-01 02:47:30 +00:00
2023-02-01 02:47:30 +00:00
2023-02-09 04:05:39 +00:00
2022-12-07 12:59:33 +00:00
2022-06-02 13:09:16 +00:00
2023-02-01 02:47:30 +00:00
2023-02-12 17:11:16 +00:00
2022-04-21 14:43:39 +00:00
2022-03-21 17:57:15 +00:00
2022-11-11 06:15:42 +00:00
2022-03-21 17:57:15 +00:00
2022-03-21 17:57:15 +00:00
2022-03-21 17:57:15 +00:00
2022-11-08 02:37:20 +00:00
2023-01-19 03:25:55 +00:00
2022-12-16 19:30:19 +00:00
2022-11-15 19:55:01 +00:00
2022-03-21 17:57:15 +00:00
2023-02-18 13:40:56 +00:00
2022-06-02 13:09:16 +00:00
2022-08-30 18:21:44 +00:00
2022-08-30 18:21:44 +00:00
2021-10-20 21:40:31 -07:00
2022-07-29 06:47:28 +10:00
2021-12-14 09:19:01 +00:00
2021-12-19 13:10:26 -08:00
2021-06-04 19:08:57 +00:00
2022-03-21 17:57:15 +00:00
2022-06-02 13:09:16 +00:00
2022-10-20 03:04:56 +00:00
2022-10-20 03:04:56 +00:00
2022-11-04 23:20:02 +00:00
2022-11-04 23:20:02 +00:00
2022-09-22 04:16:29 +00:00
2022-10-20 03:04:56 +00:00
2022-03-09 08:48:59 +00:00
2022-03-09 08:48:59 +00:00
2022-05-02 23:36:50 +00:00
2022-06-14 15:08:37 +00:00
2022-11-15 19:06:07 +00:00
2022-06-07 03:33:20 +00:00
2022-03-21 17:57:15 +00:00
2022-06-09 17:23:34 +00:00
2022-02-28 14:28:23 +00:00
2022-10-13 13:51:18 +00:00
2022-09-22 04:16:29 +00:00
2022-09-22 04:16:29 +00:00
2022-11-19 01:37:46 +00:00
2022-11-15 19:06:07 +00:00
2021-10-01 14:51:23 +00:00
2021-10-01 14:51:23 +00:00
2022-11-15 20:35:55 +00:00
2022-11-15 20:35:55 +00:00
2022-11-15 20:35:55 +00:00
2023-01-25 08:58:25 -03:00
2022-11-15 20:35:55 +00:00
2022-11-15 20:35:55 +00:00
2023-01-19 03:25:55 +00:00
2022-04-21 14:43:39 +00:00
2023-01-19 03:25:55 +00:00
2022-12-16 19:30:19 +00:00
2022-07-01 21:15:07 +00:00
2022-07-01 21:15:07 +00:00
2022-12-01 12:26:27 +00:00
2022-03-21 17:57:15 +00:00
2022-11-19 01:37:46 +00:00
2022-11-19 01:37:46 +00:00
2021-07-09 10:05:46 +00:00
2021-07-09 10:05:46 +00:00
2022-11-15 20:35:55 +00:00
2023-02-18 00:44:43 +00:00
2022-11-24 06:21:39 +00:00
2022-11-15 20:35:55 +00:00
2022-03-21 17:57:15 +00:00
2022-03-21 17:57:15 +00:00
2022-07-01 21:15:07 +00:00
2022-11-11 06:15:42 +00:00
2022-08-04 23:53:49 +00:00
2023-02-20 21:26:49 +00:00
2023-01-31 22:02:58 +00:00
2022-03-21 17:57:15 +00:00
2022-11-24 04:33:07 +00:00
2022-10-20 01:32:47 +00:00
2022-09-26 22:58:16 +00:00
2023-01-12 16:52:19 +01:00
2022-10-20 03:04:56 +00:00
2022-11-08 05:21:42 +00:00
2021-10-08 00:15:11 +00:00
2022-03-21 17:57:15 +00:00
2022-04-25 23:50:57 +00:00
2022-04-25 23:50:57 +00:00
2021-11-15 21:57:28 +00:00
2022-05-17 21:02:24 +00:00
2022-12-17 19:14:12 +00:00
2022-12-17 19:14:12 +00:00
2023-01-31 22:02:58 +00:00
2022-11-23 23:14:10 +00:00
2021-08-14 21:44:32 +00:00