Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149523602
D21001.id59946.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
902 B
Referenced Files
None
Subscribers
None
D21001.id59946.diff
View Options
Index: share/mk/bsd.cpu.mk
===================================================================
--- share/mk/bsd.cpu.mk
+++ share/mk/bsd.cpu.mk
@@ -314,27 +314,20 @@
.if ${MACHINE_CPUARCH} == "mips"
CFLAGS += -G0
+AFLAGS+= -${MIPS_ENDIAN} -mabi=${MIPS_ABI}
+CFLAGS+= -${MIPS_ENDIAN} -mabi=${MIPS_ABI}
+LDFLAGS+= -${MIPS_ENDIAN} -mabi=${MIPS_ABI}
. if ${MACHINE_ARCH:Mmips*el*} != ""
-AFLAGS += -EL
-CFLAGS += -EL
-LDFLAGS += -EL
+MIPS_ENDIAN= EL
. else
-AFLAGS += -EB
-CFLAGS += -EB
-LDFLAGS += -EB
+MIPS_ENDIAN= EB
. endif
. if ${MACHINE_ARCH:Mmips64*} != ""
-AFLAGS+= -mabi=64
-CFLAGS+= -mabi=64
-LDFLAGS+= -mabi=64
+MIPS_ABI?= 64
. elif ${MACHINE_ARCH:Mmipsn32*} != ""
-AFLAGS+= -mabi=n32
-CFLAGS+= -mabi=n32
-LDFLAGS+= -mabi=n32
+MIPS_ABI?= n32
. else
-AFLAGS+= -mabi=32
-CFLAGS+= -mabi=32
-LDFLAGS+= -mabi=32
+MIPS_ABI?= 32
. endif
. if ${MACHINE_ARCH:Mmips*hf}
CFLAGS += -mhard-float
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 26, 12:34 AM (53 m, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30354855
Default Alt Text
D21001.id59946.diff (902 B)
Attached To
Mode
D21001: Make setting mips endian and ABI less verbose.
Attached
Detach File
Event Timeline
Log In to Comment