Skip to contentSkip to conversation

configure flag for compilation question..

Qemu-devel Ben Taylor 2 participants 2 messages Oct 13, 2006 – Oct 16, 2006

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw
Quoted 11 lines · ---- Ishwar Rattan

Trying to compile qemu on amd64 based Solaris.

I do not have write permission to /usr/local subtree

./configure --libdir=other-path --prefix=not-ustlocal is fine
but make always generates binaries that want to find /usr/local/lib/libSDL-1.2.so.0 etc. (checked with ldd).

What is the way out for this sticky point?

Manually add "-L/usr/local/lib -R/usr/local/lib" to the Makefile for the link phase so it will correctly add those paths to the library lookup. If I had a code base to look at this instance, I could tell you where. You could also add those flags to Makefile.target in the SOLARIS specific areas, which would probably make more sense.

As Martin indicated, setting LD_LIBRARY_PATH may get you a running binary, but LD_LIBRARY_PATH is the wrong answer for Solaris.

Ben

#1 lore raw
Quoted 5 lines · Ben Taylor

Manually add "-L/usr/local/lib -R/usr/local/lib" to the Makefile for the link phase so it will correctly add those paths to the library lookup. If I had a code base to look at this instance, I could tell you where. You could also add those flags to Makefile.target in the SOLARIS specific areas, which would probably make more sense.

Can you point the areas? (I only found one

ifdef CONFIG_SOLARIS
LIBS+=-lsocket -lnsl -lresolv -L/home/faculty/r/rattan/solqemu/lib -R/home/facul ty/r/rattan/solqemu/lib
endif
)
and it does not make a difference.

-ishwar