On 4 July 2013 10:45, Andreas Färber <afaer...@suse.de> wrote: > Am 04.07.2013 11:17, schrieb Peter Maydell: >> Also, can you confirm that you haven't got an environment >> that sets ARFLAGS to something weird (including "") ? > > I did confirm that my environment does not have ARFLAGS set; I believe > the issue is that ARFLAGS="$(ARFLAGS)" is being passed in the Makefile, > effectively setting it to "".
That should set it to "rv", because the top level make will default ARFLAGS to that if you haven't set it explicitly. You can test this by seeing whether a V=1 build runs the libfdt make with ARFLAGS="rv" or something else: cam-vm-266:precise:qemu$ make -C build/x86 -j4 V=1 make: Entering directory `/home/petmay01/linaro/qemu-from-laptop/qemu/build/x86' make -I/home/petmay01/linaro/qemu-from-laptop/qemu/dtc VPATH=/home/petmay01/linaro/qemu-from-laptop/qemu/dtc -C dtc V="1" LIBFDT_srcdir=/home/petmay01/linaro/qemu-from-laptop/qemu/dtc/libfdt CPPFLAGS="-I/home/petmay01/linaro/qemu-from-laptop/qemu/build/x86/dtc -I/home/petmay01/linaro/qemu-from-laptop/qemu/dtc -I/home/petmay01/linaro/qemu-from-laptop/qemu/dtc/libfdt" CFLAGS="-O2 -D_FORTIFY_SOURCE=2 -g -Werror -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/home/petmay01/linaro/qemu-from-laptop/qemu/dtc/libfdt -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/petmay01/linaro/qemu-from-laptop/qemu/tests" LDFLAGS="-Wl,--warn-common -m64 -static -g " ARFLAGS="rv" CC="ccache gcc" AR="ar" LD="ld" BUILD_DIR=/home/petmay01/linaro/qemu-from-laptop/qemu/build/x86 libfdt/libfdt.a make[1]: Entering directory `/home/petmay01/linaro/qemu-from-laptop/qemu/build/x86/dtc' (this is GNU Make 3.81 from ubuntu package 3.81-8.1ubuntu1.1) -- PMM