blob: ebb5d85d2e5d01a231bbeaa662a1d4c4ac6273e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|