From: Hans-Christoph S. <ha...@at...> - 2012-02-05 04:43:40
|
I'm looking for something like GNU/Linux's rpath or Mac OS X's @loader_path in MinGW/Win32. I'm working on the mingw build system for plugins for the app I work on, Pure Data aka Pd. These plugins are DLLs that are opened using dlopen()/LoadLibrary(). I'd like these plugin DLLs to be able to link to another DLL for code shared between plugins. Any idea how to do this? Rather, I have it working in that if I launch the app in the folder where the plugin is, then it can find all the DLLs. But if I launch my app in a different folder, then it can only find the plugin DLL, but the plugin fails to find the shared DLL. I've solved this on GNU/Linux using rpath and Mac OS X using @loader_path. .hc ---------------------------------------------------------------------------- "Making boring techno music is really easy with modern tools, but with live coding, boring techno is much harder." - Chris McCormick |