Skip to content

Commit

Permalink
Merge pull request #106 from garlick/issue#100
Browse files Browse the repository at this point in the history
build: fix compilation on el9 with older pmix releases
  • Loading branch information
mergify[bot] authored Dec 11, 2024
2 parents 25309f3 + 4acf6f8 commit 2442071
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ AS_CASE($ax_cv_c_compiler_vendor,
WARNING_CFLAGS="-Wall -Werror -Wno-strict-aliasing -Wno-error=deprecated-declarations"
]
)
saved_CFLAGS="$CFLAGS"
CFLAGS="-Wstringop-overread $CFLAGS"
AC_MSG_CHECKING([whether compiler accepts -Wstringop-overread])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [
AC_MSG_RESULT([yes])
WARNING_CFLAGS="$WARNING_CFLAGS -Wno-error=stringop-overread"
],[
AC_MSG_RESULT([no])
])
CFLAGS="$saved_CFLAGS"
AC_SUBST([WARNING_CFLAGS])

LT_INIT
Expand Down

0 comments on commit 2442071

Please sign in to comment.