mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Take LINUX_HEADERS out of ALL_CPPFLAGS, use it in MODCPPFLAGS
only. This fixes compilation on PPC and possibly others. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1942 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
4
Makefile
4
Makefile
@@ -185,7 +185,7 @@ SED := sed
|
||||
# PROGCPPFLAGS/PROGCFLAGS is to create non-kernel object files (which are linked into executables).
|
||||
# ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
|
||||
# LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
|
||||
ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS)
|
||||
ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS)
|
||||
ALL_CFLAGS := -Wall -O2
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
@@ -225,7 +225,7 @@ endif
|
||||
# from user space headers.
|
||||
kbuild_2_4_nostdinc := -nostdinc $(shell LC_ALL=C $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
|
||||
|
||||
MODCPPFLAGS += -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer $(ALL_CPPFLAGS) $(kbuild_2_4_nostdinc)
|
||||
MODCPPFLAGS += -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer $(ALL_CPPFLAGS) -I$(LINUX_HEADERS) $(kbuild_2_4_nostdinc)
|
||||
MODCFLAGS += $(ALL_CFLAGS)
|
||||
PROGCPPFLAGS := $(ALL_CPPFLAGS)
|
||||
PROGCFLAGS := $(ALL_CFLAGS)
|
||||
|
Reference in New Issue
Block a user