Commit 1489e7dd authored by Philippe Gerum's avatar Philippe Gerum
Browse files

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: default avatarPhilippe Gerum <rpm@xenomai.org>
parent 41dc88ab
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment