diff options
author | Denis Vlasenko | 2008-06-04 11:28:24 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-04 11:28:24 +0000 |
commit | 1da86d2f40f304d78b2ae4aac3b590b19adc7ce3 (patch) | |
tree | 6f2a87934ad24c0e640c6313d56d2e28d1e81185 /Makefile | |
parent | 1e93f3c5859aeebcca7c0480de2bd038defe8b1c (diff) | |
download | busybox-1da86d2f40f304d78b2ae4aac3b590b19adc7ce3.zip busybox-1da86d2f40f304d78b2ae4aac3b590b19adc7ce3.tar.gz |
build system: add PIE build option
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -315,6 +315,8 @@ AFLAGS_KERNEL = # Use LINUXINCLUDE when you must reference the include/ directory. # Needed to be compatible with the O= option CFLAGS := $(CFLAGS) +# Added only to final link stage of busybox binary +CFLAGS_busybox := $(CFLAGS_busybox) CPPFLAGS := $(CPPFLAGS) AFLAGS := $(AFLAGS) LDFLAGS := $(LDFLAGS) @@ -580,7 +582,7 @@ quiet_cmd_busybox__ ?= LINK $@ cmd_busybox__ ?= $(srctree)/scripts/trylink \ "$@" \ "$(CC)" \ - "$(CFLAGS)" \ + "$(CFLAGS) $(CFLAGS_busybox)" \ "$(LDFLAGS) $(EXTRA_LDFLAGS)" \ "$(core-y)" \ "$(libs-y)" \ |