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:
4
Makefile
4
Makefile
@@ -204,14 +204,14 @@ ALL_CPPFLAGS += $(CPPFLAGS)
|
||||
ALL_CFLAGS += $(CFLAGS)
|
||||
|
||||
MODCPPFLAGS :=
|
||||
MODCFLAGS :=
|
||||
MODCFLAGS := -fno-strict-aliasing
|
||||
|
||||
ifeq ($(MACHINE),alpha)
|
||||
MODCFLAGS += -ffixed-8 -mno-fp-regs -mcpu=ev56
|
||||
endif
|
||||
|
||||
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
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user