Hi, On Mon, Dec 12, 2011 at 11:25 AM, Arnaud Lacombe <lacom...@gmail.com> wrote: > This fixes the following build error: > > make[4]: Entering directory > `target-i386_gcc-4.6.1_binutils_2.21.1_uClibc-0.9.32/kexec-tools-2.0.2' > mkdir -p purgatory > i486-openwrt-linux-uclibc-gcc --no-undefined -nostartfiles -nostdlib > -nodefaultlibs -e purgatory_start -r -o purgatory/purgatory.ro \ > purgatory/purgatory.o purgatory/printf.o purgatory/string.o \ > purgatory/arch/i386/entry32-16.o purgatory/arch/i386/entry32-16-debug.o \ > purgatory/arch/i386/entry32.o purgatory/arch/i386/setup-x86.o \ > purgatory/arch/i386/stack.o purgatory/arch/i386/compat_x86_64.o \ > purgatory/arch/i386/purgatory-x86.o purgatory/arch/i386/console-x86.o \ > purgatory/arch/i386/vga.o purgatory/arch/i386/pic.o \ > purgatory/arch/i386/crashdump_backup.o purgatory/sha256.o \ > i486-openwrt-linux-uclibc-gcc: error: unrecognized option '--no-undefined' > > Original oatch from `kexec-tools' repository: > > commit 8880e5b8a295788dcae8f5cc038de92cd97b6807 > Author: Simon Horman <ho...@verge.net.au> > Date: Wed Mar 30 08:34:39 2011 +0900 > > build: Pass --no-undefined as a linker option > > gcc-4.6 does not accept --no-undefined as a compiler option > > Reported-by: Civil <civil.o...@gmail.com> > Acked-by: "Eric W. Biederman" <ebied...@xmission.com> > Signed-off-by: Simon Horman <ho...@verge.net.au> > > Signed-off-by: Arnaud Lacombe <lacom...@gmail.com> ping ?
Thanks, - Arnaud > --- > ...uild-Pass-no-undefined-as-a-linker-option.patch | 32 > ++++++++++++++++++++ > 1 files changed, 32 insertions(+), 0 deletions(-) > create mode 100644 > package/kexec-tools/patches/0010-build-Pass-no-undefined-as-a-linker-option.patch > > diff --git > a/package/kexec-tools/patches/0010-build-Pass-no-undefined-as-a-linker-option.patch > > b/package/kexec-tools/patches/0010-build-Pass-no-undefined-as-a-linker-option.patch > new file mode 100644 > index 0000000..0384a03 > --- /dev/null > +++ > b/package/kexec-tools/patches/0010-build-Pass-no-undefined-as-a-linker-option.patch > @@ -0,0 +1,32 @@ > +From 8880e5b8a295788dcae8f5cc038de92cd97b6807 Mon Sep 17 00:00:00 2001 > +From: Simon Horman <ho...@verge.net.au> > +Date: Wed, 30 Mar 2011 08:34:39 +0900 > +Subject: [PATCH] build: Pass --no-undefined as a linker option > + > +gcc-4.6 does not accept --no-undefined as a compiler option > + > +Reported-by: Civil <civil.o...@gmail.com> > +Acked-by: "Eric W. Biederman" <ebied...@xmission.com> > +Signed-off-by: Simon Horman <ho...@verge.net.au> > +--- > + purgatory/Makefile | 4 ++-- > + 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) > +-- > +1.7.8.rc3.51.g86536f > + > -- > 1.7.6.153.g78432 > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel