summaryrefslogtreecommitdiff
path: root/purgatory
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-03-30 08:34:39 +0900
committerSimon Horman <horms@verge.net.au>2011-03-30 12:06:10 +0900
commit8880e5b8a295788dcae8f5cc038de92cd97b6807 (patch)
treed872a1b9df7b9c55a76db56d5f78f0fd353e32c8 /purgatory
parent5c459b6c7e3589bf6af4d5e0ee8c8e3172adc397 (diff)
downloadkexec-tools-8880e5b8a295788dcae8f5cc038de92cd97b6807.tar.gz
build: Pass --no-undefined as a linker option
gcc-4.6 does not accept --no-undefined as a compiler option Reported-by: Civil <civil.over@gmail.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r--purgatory/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/purgatory/Makefile b/purgatory/Makefile
index ea0c19a..ee1679c 100644
--- a/purgatory/Makefile
+++ b/purgatory/Makefile
@@ -56,8 +56,8 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
-I$(srcdir)/include \
-I$(shell $(CC) -print-file-name=include)
$(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
- --no-undefined -nostartfiles -nostdlib -nodefaultlibs \
- -e purgatory_start -r
+ -Wl,--no-undefined -nostartfiles -nostdlib \
+ -nodefaultlibs -e purgatory_start -r
$(PURGATORY): $(PURGATORY_OBJS)
$(MKDIR) -p $(@D)