Skip to content

Commit e41f95a

Browse files
Check for -msplit-patch-nops
Our gcc patch was merged into mainline, but -msplit-patch-nops now needs to be provided for ppc64le. Hence just check if the compiler supports this flag and pass it forward. Signed-off-by: Giuliano Belinassi <gbelinassi@suse.de>
1 parent ddf1e5a commit e41f95a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: configure.ac

+10-1
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,17 @@ AM_PATH_PYTHON([3])
132132
AX_PYTHON_MODULE([pexpect], [fatal])
133133
AX_PYTHON_MODULE([psutil], [fatal])
134134

135+
_SPLIT_PATCH_NOPS=""
136+
137+
# Check if compiler provides -msplit-patch-nops. It may be required on
138+
# some architectures.
139+
AX_CHECK_COMPILE_FLAG([-msplit-patch-nops],
140+
[_SPLIT_PATCH_NOPS="-msplit-patch-nops"],
141+
[_SPLIT_PATCH_NOPS=""])
142+
135143
# Add the following flags to the compilation of all files
136-
AC_SUBST([AM_CFLAGS], ["-Wall -Wextra -Werror"])
144+
AC_SUBST([AM_CFLAGS], ["-Wall -Wextra -Werror $_SPLIT_PATCH_NOPS"])
145+
AC_SUBST([AM_CXXFLAGS], ["-Wall -Wextra -Werror $_SPLIT_PATCH_NOPS"])
137146
AC_SUBST([AM_CCASFLAGS], ["-Wa,--fatal-warnings"])
138147

139148
# Checking the call stack of all threads enables libpulp to only apply a live

0 commit comments

Comments
 (0)