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
|
||||
|
||||
# tools
|
||||
CC = gcc
|
||||
AR = ar
|
||||
# tools
|
||||
# ('?=' sets them to gcc and ar unless they are already defined for
|
||||
# a board-specific cross-compiler and archiver)
|
||||
CC ?= gcc
|
||||
AR ?= ar
|
||||
|
||||
# target
|
||||
TARGET = bacnet
|
||||
|
||||
Reference in New Issue
Block a user