From 42c01e92f62efe7300c6419a6c21c87bf537d314 Mon Sep 17 00:00:00 2001 From: tbrennan3 Date: Fri, 26 Feb 2010 15:43:18 +0000 Subject: [PATCH] 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. --- bacnet-stack/lib/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bacnet-stack/lib/Makefile b/bacnet-stack/lib/Makefile index 7b428e9e..eadd7a9a 100644 --- a/bacnet-stack/lib/Makefile +++ b/bacnet-stack/lib/Makefile @@ -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