build: disable LTO for MinGW
Avoids a probably compiler error whereby LTO static libraries cannot be linked to applications.
This commit is contained in:
parent
de353c9297
commit
6af493ba46
@ -176,10 +176,12 @@ AS_IF([test "x$enable_debugging" = "xyes"], [
|
||||
AX_APPEND_COMPILE_FLAGS([-O0], [], [-Werror])
|
||||
], [
|
||||
AX_APPEND_COMPILE_FLAGS([-O2], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-flto], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-flto-partition=none], [], [-Werror])
|
||||
|
||||
AX_APPEND_LINK_FLAGS([-fuse-linker-plugin], [], [-Werror])
|
||||
# mingw LTO support currently appears to be broken
|
||||
AS_IF([test x"${host_os}" != x"mingw32"], [
|
||||
AX_APPEND_COMPILE_FLAGS([-flto])
|
||||
AX_APPEND_LINK_FLAGS([-fuse-linker-plugin], [], [-Werror])
|
||||
])
|
||||
])
|
||||
|
||||
AS_CASE([$host_os],
|
||||
|
Loading…
Reference in New Issue
Block a user