You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-process/lsof/files/lsof-4.98.0-fix-clang-versi...

16 lines
521 B

https://bugs.gentoo.org/919253
https://github.com/lsof-org/lsof/issues/305
Ignore HIP or CUDA versions in clang, when checking for compiler version
--- a/configure.ac
+++ b/configure.ac
@@ -410,7 +410,7 @@ AC_CONFIG_FILES([Makefile])
# Pass build configurations to version.h.in
AC_SUBST(cc, $CC)
-AC_SUBST(ccv, $($CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'))
+AC_SUBST(ccv, $($CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p;q'))
AC_SUBST(ccflags, $CFLAGS)
AC_SUBST(ldflags, "$LDFLAGS$LIBS")
# Reproducible build