ok the way you link a shared library, one copied in the bundle, should be this:
install_name_tool -id @executable_path/../Frameworks/libixml.dylib /Applications/aMule.app/Contents/Frameworks/libixml.dylib
install_name_tool -change libixml.dylib @executable_path/../Frameworks/libixml.dylib /Applications/aMule.app/Contents/MacOS/amule
having done this... i get:
(gdb) run
Starting program: /Applications/aMule.app/Contents/MacOS/amule
Reading symbols for shared libraries ............................................................................. done
Reading symbols for shared libraries . done
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Loading temp files from /Users/isulzer/Library/Application Support/aMule/Temp.
Loading PartFile 21 of 21
All PartFiles Loaded.
ListenSocket: Ok.
CUPnPException: error(CDynamicLibHandle): Unable to dlopen one or more UPnP component libraries. Check PATH and LD_LIBRARY_PATH.
External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
however i dont get the individual cant find files problem. So theres something wrong with whatever happens when dlopen plays with those libraries... damned if i know what tho.