kexec-fix-linker-options.patch 623 B

123456789101112131415
  1. Fix compilation with gcc 4.6 by correcting the way that linker options
  2. are passed to gcc.
  3. Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
  4. --- kexec-2.0.2/purgatory/Makefile.orig 2011-09-26 14:16:44.256595912 +0200
  5. +++ kexec-2.0.2/purgatory/Makefile 2011-09-26 14:17:01.606621357 +0200
  6. @@ -56,7 +56,7 @@
  7. -I$(srcdir)/include \
  8. -I$(shell $(CC) -print-file-name=include)
  9. $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
  10. - --no-undefined -nostartfiles -nostdlib -nodefaultlibs \
  11. + -Wl,-no-undefined -nostartfiles -nostdlib -nodefaultlibs \
  12. -e purgatory_start -r
  13. $(PURGATORY): $(PURGATORY_OBJS)