• W
    Makefile.target: prepend $libs_softmmu to $LIBS · 7398dfc7
    Wei Liu 提交于
    I discovered a problem when trying to build QEMU statically with gcc.
    libm is an element of LIBS while libpixman-1 is an element in
    libs_softmmu. Libpixman references functions in libm, so the original
    ordering makes linking fail.
    
    This fix is to reorder $libs_softmmu and $LIBS to make -lm appear after
    -lpixman-1. However I'm not quite sure if this is the right fix, hence
    the RFC tag.
    
    Normally QEMU is built with c++ compiler which happens to link in libm
    (at least this is the case with g++), so building QEMU statically
    normally just works and nobody notices this issue.
    Signed-off-by: NWei Liu <wei.liu2@citrix.com>
    Message-Id: <1425912873-21215-1-git-send-email-wei.liu2@citrix.com>
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    7398dfc7
Makefile.target 6.1 KB