From db41a51ae66c5e5e1289a7243c33d4903ea74fff Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Wed, 21 Nov 2012 19:46:31 +0100 Subject: [PATCH] Make gcc default LD, and allow override with LD_OVERRIDE --- cpu/native/Makefile.native | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpu/native/Makefile.native b/cpu/native/Makefile.native index 9f0ce13fb..44be5be73 100644 --- a/cpu/native/Makefile.native +++ b/cpu/native/Makefile.native @@ -4,7 +4,11 @@ CONTIKI_SOURCEFILES += mtarch.c rtimer-arch.c elfloader-stub.c watchdog.c ### Compiler definitions CC ?= gcc -LD ?= gcc +ifdef LD_OVERRIDE + LD = $(LD_OVERRIDE) +else + LD = gcc +endif AS ?= as NM ?= nm OBJCOPY ?= objcopy