This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: Including full path to shared library in the executable file

Hi - I've tried searching online and in mailing list archives but I
couldn't find what I'm looking for.

As I understand it, a Cygwin binary compiled with a shared library (my own
lib), will run only if the .dll file can be found in $PATH, or in the
current working directory from where the executable is run or in the same
directory as the executable. Hope I haven't missed any other variations.

My question is whether there is a way to include the full path to the .dll
while creating the .exe - much like how cmake "link_directories" or
"target_link_libraries" allows you to - for e.g. on Linux (an ldd on the
executable file shows the full path to the .so file and thus
precludes the need to explicitly set LD_LIBRARY_PATH). While this is not a
cmake question (or a cmake mailing list) if you have experience solving
this problem using cmake, would appreciate those insights as well.


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]