Recent

Author Topic: Linking against Shared Library, calling program without custom LD_LIBRARY_PATH  (Read 4284 times)

ProgramMonkey

  • Newbie
  • Posts: 6
gcc , can use -Wl,-rpath=lib_directory pameter.
fpc, how can i contain a lib path in elf ?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12786
  • FPC developer.
-Xr/path/something

I don't know if it works on all systems though.

ProgramMonkey

  • Newbie
  • Posts: 6
 :)
thanks, I use the patchelf utils can add rpath.

ProgramMonkey

  • Newbie
  • Posts: 6
also, using Sh script to temporary export LD_LIBRARY_PATH.

 

TinyPortal © 2005-2018