svn commit: r357170 - head/share/mk

Alex Richardson arichardson at FreeBSD.org
Mon Jan 27 12:02:48 UTC 2020


Author: arichardson
Date: Mon Jan 27 12:02:47 2020
New Revision: 357170
URL: https://svnweb.freebsd.org/changeset/base/357170

Log:
  Build hard-float lib32 for mips64hf/mips64elhf
  
  This should fix linker errors when building with clang+lld.
  After this change the lib32 compat libraries are now buildt with
  -mhard-float instead of -msoft-float
  
  Reviewed By:	brooks, jhb
  Differential Revision: https://reviews.freebsd.org/D23229

Modified:
  head/share/mk/bsd.compat.mk

Modified: head/share/mk/bsd.compat.mk
==============================================================================
--- head/share/mk/bsd.compat.mk	Mon Jan 27 12:02:41 2020	(r357169)
+++ head/share/mk/bsd.compat.mk	Mon Jan 27 12:02:47 2020	(r357170)
@@ -79,11 +79,10 @@ LIB32CPUFLAGS=  -target mips-unknown-freebsd13.0
 .endif
 LIB32CPUFLAGS+= -mabi=32
 LIB32_MACHINE=	mips
+LIB32_MACHINE_ARCH:=	${COMPAT_ARCH:S/64//}
 .if ${COMPAT_ARCH:Mmips64el*} != ""
-LIB32_MACHINE_ARCH=	mipsel
 _EMULATION=	elf32ltsmip_fbsd
 .else
-LIB32_MACHINE_ARCH=	mips
 _EMULATION=	elf32btsmip_fbsd
 .endif
 LIB32WMAKEFLAGS= LD="${XLD} -m ${_EMULATION}"


More information about the svn-src-head mailing list