git: cc503d617eb6 - stable/12 - libproc tests: allow dollars in identifiers for gcc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Dec 2021 15:00:31 UTC
The branch stable/12 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=cc503d617eb671f159e7fa5b8a82e3730d07ba6e
commit cc503d617eb671f159e7fa5b8a82e3730d07ba6e
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-12-21 14:55:48 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-12-21 14:55:48 +0000
libproc tests: allow dollars in identifiers for gcc
Older versions of gcc require the -fdollars-in-identifiers option to
compile the target of the libproc test, otherwise it will complain about
the $qux identifier used.
Direct commit to stable/12, since that still has gcc 4.2.1, and later
versions of gcc do not complain by default.
---
lib/libproc/tests/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/libproc/tests/Makefile b/lib/libproc/tests/Makefile
index 8c7563a33ca6..ed1ff90ce212 100644
--- a/lib/libproc/tests/Makefile
+++ b/lib/libproc/tests/Makefile
@@ -14,4 +14,6 @@ LIBADD= elf proc rtld_db util
STRIP=
CFLAGS.target_prog.c+= -O0
+CFLAGS.gcc+= -fdollars-in-identifiers
+
.include <bsd.test.mk>