Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102872766
D25728.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
632 B
Referenced Files
None
Subscribers
None
D25728.id.diff
View Options
Index: head/lib/csu/mips/Makefile
===================================================================
--- head/lib/csu/mips/Makefile
+++ head/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>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 6:48 AM (18 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14712027
Default Alt Text
D25728.id.diff (632 B)
Attached To
Mode
D25728: ld.bfd requires an explicit emulation for MIPS for ld -r.
Attached
Detach File
Event Timeline
Log In to Comment