mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
Compile with "-g -O" instead of "-O2" when DEBUG is set to 1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2103 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f2fe6cbd68
commit
bd0840096c
1 file changed
+4
-1
@@ -183,10 +183,13 @@ SED := sed
|
||||
# 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)
|
||||
ALL_CFLAGS := -Wall -O2
|
||||
ALL_CFLAGS := -Wall
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
ALL_CPPFLAGS += -DDEBUG
|
||||
ALL_CFLAGS += -O -g
|
||||
else
|
||||
ALL_CFLAGS += -O2
|
||||
endif
|
||||
|
||||
ifeq ($(WARN),1)
|
||||
|
||||
Reference in new issue
Block a user