mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 12:40:29 +01:00
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> |
||
|---|---|---|
| .. | ||
| drirc_configdir | ||
| drirc_home | ||
| format | ||
| hash_table | ||
| perf | ||
| vma | ||
| bitset_test.cpp | ||
| blob_test.cpp | ||
| cache_test.cpp | ||
| dag_test.cpp | ||
| fast_idiv_by_const_test.cpp | ||
| fast_urem_by_const_test.cpp | ||
| half_float_test.cpp | ||
| int_min_max.cpp | ||
| mesa-sha1_test.cpp | ||
| os_mman_test.cpp | ||
| process_test.c | ||
| rb_tree_test.cpp | ||
| register_allocate_test.cpp | ||
| roundeven_test.cpp | ||
| set_test.cpp | ||
| sparse_array_test.cpp | ||
| string_buffer_test.cpp | ||
| timespec_test.cpp | ||
| u_atomic_test.cpp | ||
| u_call_once_test.cpp | ||
| u_debug_stack_test.cpp | ||
| u_debug_test.cpp | ||
| u_printf_test.cpp | ||
| u_qsort_test.cpp | ||
| vector_test.cpp | ||
| xmlconfig.cpp | ||