From 1489e7dddd8a6df0208e30f8e6a9044774a1bb79 Mon Sep 17 00:00:00 2001 From: Philippe Gerum Date: Sun, 5 Sep 2021 15:52:08 +0200 Subject: [PATCH] make: accept preset toolchain variables Use the preset values of CC, CXX, LD, AR if already defined in the environment. This is typically required for building libevl with the Yocto SDK, with the settings sourced from the environment-setup script. Signed-off-by: Philippe Gerum --- config.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.mk b/config.mk index ba33b1b..ef98d1a 100644 --- a/config.mk +++ b/config.mk @@ -5,10 +5,10 @@ ARCH ?= $(shell uname -m | sed \ -e s/aarch64.*/arm64/ \ -e s/x86_64/x86/ ) CROSS_COMPILE ?= -CC = $(CROSS_COMPILE)gcc -CXX = $(CROSS_COMPILE)g++ -LD = $(CROSS_COMPILE)ld -AR = $(CROSS_COMPILE)ar +CC ?= $(CROSS_COMPILE)gcc +CXX ?= $(CROSS_COMPILE)g++ +LD ?= $(CROSS_COMPILE)ld +AR ?= $(CROSS_COMPILE)ar UAPI ?= /usr/include DESTDIR ?= /usr/evl