All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] kexec: fix compilation with gcc 4.6
@ 2011-09-26 12:31 Sven Neumann
  2011-09-26 20:16 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Neumann @ 2011-09-26 12:31 UTC (permalink / raw)
  To: buildroot

gcc 4.6 has stricter checks for invalid command-line options.
Fix compilation by passing linker options with -Wl,

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
 package/kexec/kexec-fix-linker-options.patch |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 package/kexec/kexec-fix-linker-options.patch

diff --git a/package/kexec/kexec-fix-linker-options.patch b/package/kexec/kexec-fix-linker-options.patch
new file mode 100644
index 0000000..7bd5f1d
--- /dev/null
+++ b/package/kexec/kexec-fix-linker-options.patch
@@ -0,0 +1,15 @@
+Fix compilation with gcc 4.6 by correcting the way that linker options
+are passed to gcc.
+
+Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
+--- kexec-2.0.2/purgatory/Makefile.orig	2011-09-26 14:16:44.256595912 +0200
++++ kexec-2.0.2/purgatory/Makefile	2011-09-26 14:17:01.606621357 +0200
+@@ -56,7 +56,7 @@
+ 			-I$(srcdir)/include \
+ 			-I$(shell $(CC) -print-file-name=include)
+ $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
+-			--no-undefined -nostartfiles -nostdlib -nodefaultlibs \
++			-Wl,-no-undefined -nostartfiles -nostdlib -nodefaultlibs \
+ 			-e purgatory_start -r
+ 
+ $(PURGATORY): $(PURGATORY_OBJS)
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] kexec: fix compilation with gcc 4.6
  2011-09-26 12:31 [Buildroot] [PATCH] kexec: fix compilation with gcc 4.6 Sven Neumann
@ 2011-09-26 20:16 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-09-26 20:16 UTC (permalink / raw)
  To: buildroot

>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:

 Sven> gcc 4.6 has stricter checks for invalid command-line options.
 Sven> Fix compilation by passing linker options with -Wl,

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-26 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-26 12:31 [Buildroot] [PATCH] kexec: fix compilation with gcc 4.6 Sven Neumann
2011-09-26 20:16 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.