summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2006-12-29 23:27:22 +0000
committerMike Frysinger2006-12-29 23:27:22 +0000
commitd9e4ddc38b38b7cf6cc7bdd9dcf6794f8aad8d2e (patch)
treec9760f34bfa28a752b5b42710d98d39a45d6f3e2
parentc1a339983fa9a2af2971f5c340bd33e7a6930384 (diff)
downloadbusybox-d9e4ddc38b38b7cf6cc7bdd9dcf6794f8aad8d2e.zip
busybox-d9e4ddc38b38b7cf6cc7bdd9dcf6794f8aad8d2e.tar.gz
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
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d4cc766..580a559 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