diff options
author | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2005-03-11 20:51:35 +0000 |
---|---|---|
committer | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2005-03-11 20:51:35 +0000 |
commit | 3dbc454bb8060cf92e8b9c49e779705b5f22268f (patch) | |
tree | 446328854fab4d9ee0b0ba95a93edc44e6349df6 /Makefile | |
parent | 47d9cd762db3bf169b47029c615b1e089afa8fad (diff) | |
download | lm-sensors-3dbc454bb8060cf92e8b9c49e779705b5f22268f.tar.gz |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |