2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Compile kernel modules with -fno-strict-aliasing on all

architectures. This prevents warnings in kernel header files.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2935 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2005-03-19 11:18:17 +00:00
parent bff323e3ca
commit 0afe020cf1

View File

@@ -204,14 +204,14 @@ ALL_CPPFLAGS += $(CPPFLAGS)
ALL_CFLAGS += $(CFLAGS) ALL_CFLAGS += $(CFLAGS)
MODCPPFLAGS := MODCPPFLAGS :=
MODCFLAGS := MODCFLAGS := -fno-strict-aliasing
ifeq ($(MACHINE),alpha) ifeq ($(MACHINE),alpha)
MODCFLAGS += -ffixed-8 -mno-fp-regs -mcpu=ev56 MODCFLAGS += -ffixed-8 -mno-fp-regs -mcpu=ev56
endif endif
ifeq ($(MACHINE),x86_64) ifeq ($(MACHINE),x86_64)
MODCFLAGS += -fno-strict-aliasing -fno-common -fomit-frame-pointer -mno-red-zone \ MODCFLAGS += -fno-common -fomit-frame-pointer -mno-red-zone \
-mcmodel=kernel -fno-reorder-blocks -finline-limit=2000 -fno-strength-reduce -mcmodel=kernel -fno-reorder-blocks -finline-limit=2000 -fno-strength-reduce
endif endif