mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
Set proper compiler flags for mips, sparc32, sparc64.
Patch by Aurelien Jarno. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2928 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
44c0a5bdfe
commit
9611f9a935
1 file changed
+14
@@ -215,6 +215,20 @@ MODCFLAGS += -fno-strict-aliasing -fno-common -fomit-frame-pointer -mno-red-zone
|
||||
-mcmodel=kernel -fno-reorder-blocks -finline-limit=2000 -fno-strength-reduce
|
||||
endif
|
||||
|
||||
ifeq ($(MACHINE),mips)
|
||||
MODCFLAGS += -mabi=32 -mips3 -Wa,-32 -Wa,-mips3 -Wa,--trap
|
||||
endif
|
||||
|
||||
ifeq ($(MACHINE),sparc32)
|
||||
MODCFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
|
||||
endif
|
||||
|
||||
ifeq ($(MACHINE),sparc64)
|
||||
MODCFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
|
||||
-ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare \
|
||||
-Wa,--undeclared-regs
|
||||
endif
|
||||
|
||||
ifeq ($(SMP),1)
|
||||
MODCPPFLAGS += -D__SMP__
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user