[poky] [PATCH 4/5] elfutils-0.148: fix build problem with "ar"

Wolfgang Denk wd at denx.de
Tue Dec 7 13:14:02 PST 2010


Building on Fedora 14 failed with:

make[2]: Entering directory `.../tmp/work/x86_64-linux/elfutils-native-0.148-r1/elfutils-0.148/src'
rm -f libld_elf_i386_pic.a
ar cru libld_elf_i386_pic.a i386_ld.os
ar: -u: (PROGRAM ERROR) Option should have been recognized!?
Try `ar --help' or `ar --usage' for more information.

Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 .../elfutils/elfutils-0.148/ar-options.patch       |   11 +++++++++++
 meta/recipes-devtools/elfutils/elfutils_0.148.bb   |    3 ++-
 2 files changed, 13 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.148/ar-options.patch

diff --git a/meta/recipes-devtools/elfutils/elfutils-0.148/ar-options.patch b/meta/recipes-devtools/elfutils/elfutils-0.148/ar-options.patch
new file mode 100644
index 0000000..51af3bb
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/elfutils-0.148/ar-options.patch
@@ -0,0 +1,11 @@
+--- elfutils-0.148/src/Makefile.in.ORIG	2010-12-05 03:37:48.292949274 +0100
++++ elfutils-0.148/src/Makefile.in	2010-12-05 10:26:14.441638800 +0100
+@@ -64,7 +64,7 @@
+ CONFIG_CLEAN_VPATH_FILES =
+ LIBRARIES = $(noinst_LIBRARIES)
+ AR = ar
+-ARFLAGS = cru
++ARFLAGS = cr
+ libar_a_AR = $(AR) $(ARFLAGS)
+ libar_a_LIBADD =
+ am_libar_a_OBJECTS = arlib.$(OBJEXT) arlib2.$(OBJEXT)
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
index f84ab8e..5a7beaa 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3\
                     file://EXCEPTION;md5=570adcb0c1218ab57f2249c67d0ce417"
 DEPENDS = "libtool zlib"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/elfutils-${PV}.tar.bz2"
 
@@ -24,6 +24,7 @@ SRC_URI += "\
         file://testsuite-ignore-elflint.diff \
         file://elf_additions.diff \
 	file://elfutils-fsize.patch \
+	file://ar-options.patch \
 "
 
 # The buildsystem wants to generate 2 .h files from source using a binary it just built,
-- 
1.7.3.2




More information about the poky mailing list