summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-04 11:28:24 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-04 11:28:24 +0000
commit1da86d2f40f304d78b2ae4aac3b590b19adc7ce3 (patch)
tree6f2a87934ad24c0e640c6313d56d2e28d1e81185 /Makefile
parent1e93f3c5859aeebcca7c0480de2bd038defe8b1c (diff)
downloadbusybox-w32-1da86d2f40f304d78b2ae4aac3b590b19adc7ce3.tar.gz
busybox-w32-1da86d2f40f304d78b2ae4aac3b590b19adc7ce3.tar.bz2
busybox-w32-1da86d2f40f304d78b2ae4aac3b590b19adc7ce3.zip
build system: add PIE build option
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aad67a1a8..308ea42cd 100644
--- a/Makefile
+++ b/Makefile
@@ -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
317CFLAGS := $(CFLAGS) 317CFLAGS := $(CFLAGS)
318# Added only to final link stage of busybox binary
319CFLAGS_busybox := $(CFLAGS_busybox)
318CPPFLAGS := $(CPPFLAGS) 320CPPFLAGS := $(CPPFLAGS)
319AFLAGS := $(AFLAGS) 321AFLAGS := $(AFLAGS)
320LDFLAGS := $(LDFLAGS) 322LDFLAGS := $(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)" \