MAKEFILE: Added support to attempt to use the OS provided cc if gcc isn't available or otherwise specified by GCC= on the make command line.
This commit is contained in:
parent
89ca7bda3b
commit
1458712547
1 changed files with 7 additions and 1 deletions
6
makefile
6
makefile
|
@ -77,8 +77,14 @@ else
|
|||
endif
|
||||
ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||
ifeq ($(GCC),)
|
||||
ifneq (has-gcc,$(shell if which -s gcc; then echo has-gcc; fi))
|
||||
$(info *** Warning *** Using local cc since gcc isn't available locally.)
|
||||
$(info *** Warning *** You may need to install gcc to build working simulators.)
|
||||
GCC = cc
|
||||
else
|
||||
GCC = gcc
|
||||
endif
|
||||
endif
|
||||
OSTYPE = $(shell uname)
|
||||
# OSNAME is used in messages to indicate the source of libpcap components
|
||||
OSNAME = $(OSTYPE)
|
||||
|
|
Loading…
Add table
Reference in a new issue