configure flag for compilation question..
Quoted 11 lines · ---- Ishwar Rattan
Trying to compile qemu on amd64 based Solaris.
I do not have write permission to
/usr/localsubtree./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.0etc. (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
Quoted 12 lines · Ben Taylor
Quoted 9 lines · ---- Ishwar Rattan
Trying to compile qemu on amd64 based Solaris.
I do not have write permission to
/usr/localsubtree./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.0etc. (checked with ldd).
Quoted 6 lines
Quoted 3 lines
What is the way out for this sticky point?
Manually add "-L/usr/local/lib -R/usr/local/lib"
Rather "-L/his/home/sdl_amd64/lib -R/his/home/sdl_amd64/lib" Because I doubt, an amd64 version of libSDL is currently present in /usr/local/lib/amd64
(and he doesn't have w access).
This method is btw not really "new" to me, see my posting from a few hours ago:
http://www.opensolaris.org/jive/thread.jspa?threadID=15448&tstart=0
Quoted 6 lines
to the
Makefilefor 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.
Quoted 8 lines
As Martin indicated, setting
LD_LIBRARY_PATHmay get you a running binary, butLD_LIBRARY_PATHis the wrong answer for Solaris.Ben
"
LD_LIBRARY_PATHis the wrong answer for Solaris"
???
--->> Weak statement.
It has its [dis]advantages.
Namely that the paths to a library are _not_ hardwired. That's the exactly reason, why I did recommend it in this very scenario. And I would do it again for Ishwar's current needs.
-M.
Quoted 5 lines · Ben Taylor
As Martin indicated, setting
LD_LIBRARY_PATHmay get you a running binary, butLD_LIBRARY_PATHis the wrong answer for Solaris.
My answer had been a bit longer:
"Read ld.so.1(1)
i.e.
# man ld.so.1
Then: *One* option is to set $LD_LIBRARY_PATH (or potentially $LD_LIBRARY_PATH_64 [not required])."