The use of GCC wrapper and collect2 can have advantages
for LTO, whole program optimization C++ templates,
but causes many problems. Many low level linker options
has to be escaped by -Wl, and -nostartfiles -nodefaultlibs
has to be added to modules and ELF programs linking etc.
Signed-off-by: Pavel Pisa <ppisa@pikron.com>
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
LINK = $(CROSS_COMPILE)ld
+LD = $(CROSS_COMPILE)ld
AR = $(CROSS_COMPILE)ar
OBJCOPY = $(CROSS_COMPILE)objcopy
NM = $(CROSS_COMPILE)nm