Hello given the following function:
    
    
    proc createConfig*(configName: cstring; returnedConfig: ptr ptr Config): 
ReturnedValue {.
        cdecl, importc: "createConfig", dynlib: "libalbinos.so".}
    
    
    
    Run

libalbinos.so is installed in /usr/local/lib/libalbinos.so which is in the 
default search path from gcc.

is it possible without switching LD_LIBRARY_PATH=path ./my_app to ./my_app 
directly ?

my library is installed by CMake which choose the path on different system for 
ubuntu it's will be /usr/local/lib but on fedora for exemple it will be 
/usr/lib. So i dont want to force the path in the dynlib specifier.

Reply via email to