File: fix-missing-macro.patch

package info (click to toggle)
pmix 6.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,048 kB
  • sloc: ansic: 130,078; sh: 4,269; python: 2,973; makefile: 2,172; xml: 1,611; perl: 1,364; lex: 138
file content (30 lines) | stat: -rw-r--r-- 991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Include accidentally deleted macro
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2025-06-04
Forwarded: no

--- a/config/pmix_check_cflags.m4
+++ b/config/pmix_check_cflags.m4
@@ -40,3 +40,22 @@
                 AC_MSG_RESULT([yes])
             fi
 ])
+
+AC_DEFUN([_PMIX_CHECK_LTO_FLAG], [
+    chkflg=`echo $1 | grep -- lto`
+    if test -n "$chkflg"; then
+        AC_MSG_WARN([Configure has detected the presence of one or more])
+        AC_MSG_WARN([compiler directives involving the lto optimizer])
+        AC_MSG_WARN([$2. PMIx does not currently support such directives])
+        AC_MSG_WARN([as they conflict with the plugin architecture of the])
+        AC_MSG_WARN([PMIx library. The directive is being ignored.])
+        newflg=
+        for item in $1; do
+            chkflg=`echo $item | grep -- lto`
+            if test ! -n "$chkflg"; then
+                newflg+="$item "
+            fi
+        done
+        $2="$newflg"
+    fi
+])