Skip to contentSkip to conversation

kexec: fix compilation with gcc 4.6

PATCH New Sven Neumann 2 participants 2 messages Sep 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec: fix compilation with gcc 4.6

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

---
 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
package/kexec/kexec-fix-linker-options.patch new file +15 -0
new file mode 100644
index 0000000..7bd5f1d
@@ -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 <[email protected]>
+--- 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)
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 kexec: fix compilation with gcc 4.6

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

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

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard