Skip to contentSkip to conversation

configure flag for compilation question..

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

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw
Quoted 8 lines · ---- Martin Bochnig
Quoted 5 lines · Ben Taylor

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

Quoted 8 lines

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])."

I'm not saying it doesn't work. But properly compiled programs for Solaris include the run time paths to the libraries so an LD_LIBRARY_PATH environment variable is not required.

LD_LIBRARY_PATH is interesting to test out new versions of support libraries without actually having to recompile, so it has it's uses. but too often, folks use LD_LIBRARY_PATH as a panacea on Solaris to fix poorly compiled programs.

Ben

#1 lore raw
Quoted 29 lines · Ben Taylor
Quoted 11 lines · ---- Martin Bochnig
Quoted 7 lines · Ben Taylor

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

Quoted 10 lines

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])."

I'm not saying it doesn't work. But properly compiled programs for Solaris include the run time paths to the libraries so an LD_LIBRARY_PATH environment variable is not required.

Quoted 8 lines

LD_LIBRARY_PATH is interesting to test out new versions of support libraries without actually having to recompile, so it has it's uses. but too often, folks use LD_LIBRARY_PATH as a panacea on Solaris to fix poorly compiled programs.

Ben

He is experimenting and trying out a bit.
Not building to be published packages.

I advised him to read and understand ld.so.1(1).
And I mentioned $LD_LIBRARY_PATH as *one* possible option for him to get quick results.