]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
binutils: Buildfixes and add testsuite.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 16 Jan 2010 17:41:28 +0000 (18:41 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 16 Jan 2010 17:41:28 +0000 (18:41 +0100)
pkgs/core/binutils/binutils.nm

index 6039b2d8bc027443ffb5c97599d754d2dcef40f4..41790270a9cc06c4ec374e5c1ceb928104566bb5 100644 (file)
@@ -55,12 +55,16 @@ PKG_PATCHES   += $(THISAPP)-asprintf_fix.patch
 
 define STAGE_PREPARE_CMDS
        -mkdir -pv $(DIR_SRC)/binutils-build
+
+       # Suppress the installation of an outdated standards.info file as a newer
+       # one is installed later on in the Autoconf instructions:
+       cd $(DIR_APP) && rm -fv etc/standards.info
+       cd $(DIR_APP) && sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in
 endef
 
 define STAGE_BUILD
        cd $(DIR_SRC)/binutils-build && \
                ../$(THISAPP)/configure \
-                       $(CONFIGURE_ARCH) \
                        --prefix=/usr \
                        --enable-shared \
                        --disable-nls \
@@ -70,6 +74,12 @@ define STAGE_BUILD
        cd $(DIR_SRC)/binutils-build && make tooldir=/usr $(PARALLELISMFLAGS)
 endef
 
+define STAGE_TEST
+       # Apply a sed substitution to prevent a testsuite error:
+       cd $(DIR_APP) && sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c
+       cd $(DIR_SRC)/binutils-build && make check
+endef
+
 define STAGE_INSTALL
        cd $(DIR_SRC)/binutils-build && make tooldir=/usr install DESTDIR=$(BUILDROOT)