Our cross-compiled builds were failing when they tried to link in the library built with the native linux compiler and archiver; this fixes that without changing the intent.
GNU-based make will handle this syntax correctly; if other makes have trouble with it, we'll have to do something different.
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
#Makefile to build BACnet Library with GCC
|
#Makefile to build BACnet Library with GCC
|
||||||
|
|
||||||
# tools
|
# tools
|
||||||
CC = gcc
|
# ('?=' sets them to gcc and ar unless they are already defined for
|
||||||
AR = ar
|
# a board-specific cross-compiler and archiver)
|
||||||
|
CC ?= gcc
|
||||||
|
AR ?= ar
|
||||||
|
|
||||||
# target
|
# target
|
||||||
TARGET = bacnet
|
TARGET = bacnet
|
||||||
|
|||||||
Reference in New Issue
Block a user