diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -315,6 +315,8 @@ AFLAGS_KERNEL = | |||
315 | # Use LINUXINCLUDE when you must reference the include/ directory. | 315 | # Use LINUXINCLUDE when you must reference the include/ directory. |
316 | # Needed to be compatible with the O= option | 316 | # Needed to be compatible with the O= option |
317 | CFLAGS := $(CFLAGS) | 317 | CFLAGS := $(CFLAGS) |
318 | # Added only to final link stage of busybox binary | ||
319 | CFLAGS_busybox := $(CFLAGS_busybox) | ||
318 | CPPFLAGS := $(CPPFLAGS) | 320 | CPPFLAGS := $(CPPFLAGS) |
319 | AFLAGS := $(AFLAGS) | 321 | AFLAGS := $(AFLAGS) |
320 | LDFLAGS := $(LDFLAGS) | 322 | LDFLAGS := $(LDFLAGS) |
@@ -580,7 +582,7 @@ quiet_cmd_busybox__ ?= LINK $@ | |||
580 | cmd_busybox__ ?= $(srctree)/scripts/trylink \ | 582 | cmd_busybox__ ?= $(srctree)/scripts/trylink \ |
581 | "$@" \ | 583 | "$@" \ |
582 | "$(CC)" \ | 584 | "$(CC)" \ |
583 | "$(CFLAGS)" \ | 585 | "$(CFLAGS) $(CFLAGS_busybox)" \ |
584 | "$(LDFLAGS) $(EXTRA_LDFLAGS)" \ | 586 | "$(LDFLAGS) $(EXTRA_LDFLAGS)" \ |
585 | "$(core-y)" \ | 587 | "$(core-y)" \ |
586 | "$(libs-y)" \ | 588 | "$(libs-y)" \ |