Files
third_party_mesa3d/src/util
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
..
2022-07-07 12:25:05 +00:00
2022-04-22 19:38:52 +00:00
2022-09-29 23:40:18 +00:00
2022-09-29 23:40:18 +00:00
2022-06-02 13:09:16 +00:00
2021-08-14 21:44:32 +00:00
2023-01-19 03:25:55 +00:00
2022-11-14 20:13:20 +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-02-12 17:11:16 +00:00
2021-10-20 21:40:31 -07:00
2022-06-02 13:09:16 +00:00
2022-11-04 23:20:02 +00:00
2022-11-04 23:20:02 +00:00
2022-03-09 08:48:59 +00:00
2022-03-09 08:48:59 +00:00
2023-02-18 00:44:43 +00:00
2022-08-04 23:53:49 +00:00
2022-11-24 04:33:07 +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
2021-08-14 21:44:32 +00:00