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