diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-03-11 20:51:35 +0000 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2005-03-11 20:51:35 +0000 |
commit | 9611f9a935b98431a22e212e5f6752fd554e877d (patch) | |
tree | 446328854fab4d9ee0b0ba95a93edc44e6349df6 /Makefile | |
parent | 44c0a5bdfee0e2ccf80dc454943a1b5c222729bb (diff) | |
download | lm-sensors-git-9611f9a935b98431a22e212e5f6752fd554e877d.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 |