Skip to content

Commit

Permalink
tools/liblockdep: don't include host headers
Browse files Browse the repository at this point in the history
Adding host headers to include path may cause unexpected surprises when cross
compiling. Remove /usr/local/include from the default include path.

Signed-off-by: Baruch Siach <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
baruchsiach authored and sashalevin committed Jan 30, 2015
1 parent 7728b35 commit 8baeccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lib/lockdep/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ N =

export Q VERBOSE

INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include -I../../include $(CONFIG_INCLUDES)
INCLUDES = -I. -I./uinclude -I./include -I../../include $(CONFIG_INCLUDES)

# Set compile option CFLAGS if not set elsewhere
CFLAGS ?= -g -DCONFIG_LOCKDEP -DCONFIG_STACKTRACE -DCONFIG_PROVE_LOCKING -DBITS_PER_LONG=__WORDSIZE -DLIBLOCKDEP_VERSION='"$(LIBLOCKDEP_VERSION)"' -rdynamic -O0 -g
Expand Down

0 comments on commit 8baeccd

Please sign in to comment.