diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2020-08-04 18:23:32 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2020-08-04 18:23:32 +0000 |
| commit | ec71044958e62e7fc4ea85932beeb12b56b3b98a (patch) | |
| tree | 6df97af4f98279e63e50ab1d7c66d7a48ef2f79c /lib/csu | |
| parent | 0ea6e5109d681b55886f61822ec23a4404d3eac5 (diff) | |
Notes
Diffstat (limited to 'lib/csu')
| -rw-r--r-- | lib/csu/mips/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/csu/mips/Makefile b/lib/csu/mips/Makefile index a0c6cdf0be53..372f98d5b18e 100644 --- a/lib/csu/mips/Makefile +++ b/lib/csu/mips/Makefile @@ -2,6 +2,27 @@ .PATH: ${.CURDIR:H}/common +.include <src.opts.mk> + CFLAGS+= -DCRT_IRELOC_SUPPRESS +.if ${MACHINE_ARCH:Mmips64} +ELFCLASS= 64 +.else +ELFCLASS= 32 +.endif +.if ${MACHINE_ARCH:Mmips*el} +ENDIAN= l +.else +ENDIAN= b +.endif +.if ${MACHINE_ARCH:Mmipsn32*} +SUFFIX= n32 +.else +SUFFIX= +.endif + +# binutils requires an explicit emulation for ld -r +LDFLAGS.bfd+= -Wl,-m -Wl,elf${ELFCLASS}${ENDIAN}tsmip${SUFFIX}_fbsd + .include <bsd.lib.mk> |
