From 33e59af725074afd19e0e70f08c0711779f38b4c Mon Sep 17 00:00:00 2001 From: maniacbug Date: Wed, 4 Jan 2012 21:21:02 -0800 Subject: [PATCH] Fix Jamfile for proper ordering of libraries --- examples/nordic_fob/Jamfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nordic_fob/Jamfile b/examples/nordic_fob/Jamfile index f26d4a4..ec519f7 100644 --- a/examples/nordic_fob/Jamfile +++ b/examples/nordic_fob/Jamfile @@ -67,7 +67,7 @@ AVRDUDE = $(AVR_BIN)/avrdude ; DEFINES += F_CPU=$(F_CPU)L ARDUINO=$(ARDUINO_VERSION) VERSION_H ; OPTIM = -Os ; -CCFLAGS = -Wall -Wextra -Wno-strict-aliasing -mmcu=$(MCU) -ffunction-sections -fdata-sections ; +CCFLAGS = -Wall -Wextra -Wno-strict-aliasing -mmcu=$(MCU) -ffunction-sections -fdata-sections ; C++FLAGS = $(CCFLAGS) -fno-exceptions -fno-strict-aliasing ; LINKFLAGS = $(OPTIM) -lm -Wl,--gc-sections -mmcu=$(MCU) ; AVRDUDEFLAGS = -V -F -D -C $(AVR_ETC)/avrdude.conf -p $(MCU) -c $(UPLOAD_PROTOCOL) -b $(UPLOAD_SPEED) ; @@ -196,7 +196,7 @@ rule Arduino { LINKFLAGS on $(<) = $(LINKFLAGS) -Wl,-Map=$(LOCATE_TARGET)/$(<:B).map ; Main $(<) : $(>) ; - LinkLibraries $(<) : core libs ; + LinkLibraries $(<) : libs core ; Hex $(<:B).hex : $(<) ; for _p in $(PORTS) {