makefile: query C compiler for its default include paths.
This commit is contained in:
parent
7a8d61746d
commit
961f5e3285
1 changed files with 4 additions and 1 deletions
3
makefile
3
makefile
|
@ -232,7 +232,10 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
|||
OS_LDFLAGS = -lm
|
||||
else # Non-Android Builds
|
||||
ifeq (,$(INCLUDES)$(LIBRARIES))
|
||||
INCPATH:=$(shell LANG=C; $(GCC) -x c -v -E /dev/null 2>&1 | grep -A 10 '> search starts here' | grep '^ ' | tr -d '\n')
|
||||
ifeq (,$(INCPATH))
|
||||
INCPATH:=/usr/include
|
||||
endif
|
||||
LIBPATH:=/usr/lib
|
||||
else
|
||||
$(info *** Warning ***)
|
||||
|
|
Loading…
Add table
Reference in a new issue