git: 4c1575e360c5 - stable/12 - kern.mk: clang >= 16 already infers ELFv2 for powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Apr 2023 09:33:43 UTC
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4c1575e360c5a3fb048de69762c039de9583b1b2 commit 4c1575e360c5a3fb048de69762c039de9583b1b2 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2023-04-20 19:27:11 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2023-04-23 09:33:12 +0000 kern.mk: clang >= 16 already infers ELFv2 for powerpc64 There is no need to pass -mabi=elfv2 explicitly anymore, and with clang 16 in fact results in a "unused argument" warning. MFC after: 3 days (cherry picked from commit 42140052765e05c83a3ea797dce3eaad94bc3733) --- sys/conf/kern.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index f1e59f2ce497..bbae4ee22009 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -226,8 +226,10 @@ CFLAGS.gcc+= -mabi=elfv2 .else CFLAGS.gcc+= -mcall-aixdesc .endif +.if ${COMPILER_VERSION} < 160000 CFLAGS.clang+= -mabi=elfv2 .endif +.endif # # For MIPS we also tell gcc to use floating point emulation