From: Mike Frysinger Date: Fri, 29 Dec 2006 23:27:22 +0000 (-0000) Subject: we need to use the compiler driver to invoke LD as LDFLAGS is in the form the compile... X-Git-Tag: 1_4_0~160 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d9e4ddc38b38b7cf6cc7bdd9dcf6794f8aad8d2e;p=oweals%2Fbusybox.git we need to use the compiler driver to invoke LD as LDFLAGS is in the form the compiler driver understands, not the form the linker itself understands, so trying to invoke ld directly and passing it LDFLAGS while invoking the compiler driver in other places and passing it LDFLAGS does not work --- diff --git a/Makefile b/Makefile index d4cc766dd..580a559a4 100644 --- a/Makefile +++ b/Makefile @@ -273,7 +273,7 @@ MAKEFLAGS += -rR # Make variables (CC, etc...) AS = $(CROSS_COMPILE)as -LD = $(CROSS_COMPILE)ld +LD = $(CROSS_COMPILE)gcc -nostdlib CC = $(CROSS_COMPILE)gcc CPP = $(CC) -E AR = $(CROSS_COMPILE)ar