[fpc-pascal] loadlibrary() unsafe ?

Ewald ewald at yellowcouch.org
Fri Jun 12 20:46:35 CEST 2015


On 06/10/2015 01:20 PM, fredvs wrote:
>   To do run the program => 
>   - first dynamic load portaudio with
> loadlibrary('/the_path_you_want/libportaudio.so').
>   - run the executable via TProcess (espeak).

I must admit this is a creative way of solving this particular issue :-)
I wonder if you have tried to set the environment variable
`LD_LIBRARY_PATH` to contain `the_path_you_want` before you spawn the
other process?

See also
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html :
section 3.3.

-- 
Ewald




More information about the fpc-pascal mailing list