[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 3/3] configure/Make: Build libfdt from submod
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v5 3/3] configure/Make: Build libfdt from submodule DTC |
Date: |
Sun, 21 Apr 2013 15:16:07 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
Il 20/04/2013 20:42, Blue Swirl ha scritto:
> This is not entirely correct, I get these errors:
> mingw32:
> CC libfdt/fdt.o
> cc1: warnings being treated as errors
> /src/qemu/dtc/libfdt/fdt.c:1: warning: -fPIC ignored for target (all
> code is position independent)
>
> Other flags, including -fPIC, is missing for Clang:
> LD libfdt/libfdt-1.3.0.so
> /usr/bin/ld: libfdt/fdt.o: relocation R_X86_64_32S against `.rodata'
> can not be used when making a shared object; recompile with -fPIC
>
> My build script also passes additional CFLAGS to both.
>
> Perhaps the fix is to use QEMU_CFLAGS instead of (or in addition to)
> CFLAGS above for DTC_CFLAGS? Or add -fPIC as with pixman?
libfdt is not that portable, it doesn't use libtool to build shared
libraries.
Perhaps we can just build the static library?
Paolo
Re: [Qemu-devel] [PATCH v5 0/3] DTC as submodule, Edgar E. Iglesias, 2013/04/18
Re: [Qemu-devel] [PATCH v5 0/3] DTC as submodule, Edgar E. Iglesias, 2013/04/18