|
25 | 25 | # Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
|
26 | 26 | # Copyright (c) 2018-2022 Amazon.com, Inc. or its affiliates.
|
27 | 27 | # All Rights reserved.
|
28 |
| -# Copyright (c) 2021-2024 Nanook Consulting All rights reserved. |
| 28 | +# Copyright (c) 2021-2025 Nanook Consulting All rights reserved. |
29 | 29 | # Copyright (c) 2021 FUJITSU LIMITED. All rights reserved.
|
30 | 30 | # Copyright (c) 2023-2024 Jeffrey M. Squyres. All rights reserved.
|
31 | 31 | # $COPYRIGHT$
|
@@ -323,6 +323,17 @@ prte_show_title "Compiler and preprocessor tests"
|
323 | 323 | ##################################
|
324 | 324 |
|
325 | 325 | PRTE_SETUP_CC
|
| 326 | +# We do not currently support the "lto" optimizer as it |
| 327 | +# aggregates all the headers from our plugins, resulting |
| 328 | +# in a configuration that generates warnings/errors when |
| 329 | +# passed through their optimizer phase. We therefore check |
| 330 | +# for the flag, and if found, output a message explaining |
| 331 | +# the situation and aborting configure |
| 332 | +_PRTE_CHECK_LTO_FLAG($CPPFLAGS, CPPFLAGS) |
| 333 | +_PRTE_CHECK_LTO_FLAG($CFLAGS, CFLAGS) |
| 334 | +_PRTE_CHECK_LTO_FLAG($LDFLAGS, LDFLAGS) |
| 335 | +_PRTE_CHECK_LTO_FLAG($LIBS, LIBS) |
| 336 | + |
326 | 337 |
|
327 | 338 | # Does the compiler support "ident"-like constructs?
|
328 | 339 |
|
@@ -932,18 +943,6 @@ LDFLAGS="$LDFLAGS $PRTE_FINAL_LDFLAGS"
|
932 | 943 | LIBS="$LIBS $PRTE_FINAL_LIBS"
|
933 | 944 |
|
934 | 945 |
|
935 |
| -# We do not currently support the "lto" optimizer as it |
936 |
| -# aggregates all the headers from our plugins, resulting |
937 |
| -# in a configuration that generates warnings/errors when |
938 |
| -# passed through their optimizer phase. We therefore check |
939 |
| -# for the flag, and if found, output a message explaining |
940 |
| -# the situation and aborting configure |
941 |
| -_PRTE_CHECK_LTO_FLAG($CPPFLAGS, CPPFLAGS) |
942 |
| -_PRTE_CHECK_LTO_FLAG($CFLAGS, CFLAGS) |
943 |
| -_PRTE_CHECK_LTO_FLAG($LDFLAGS, LDFLAGS) |
944 |
| -_PRTE_CHECK_LTO_FLAG($LIBS, LIBS) |
945 |
| - |
946 |
| - |
947 | 946 | # restore any user-provided Werror flags
|
948 | 947 | AS_IF([test ! -z "$PRTE_CFLAGS_cache"], [CFLAGS="$CFLAGS $PRTE_CFLAGS_cache"])
|
949 | 948 |
|
|
0 commit comments