--- mico/admin/mico-shld.def.in	2005-11-25 12:15:45.000000000 +0100
+++ mico-mod/admin/mico-shld.def.in	2007-01-09 00:54:43.000000000 +0100
@@ -49,8 +49,7 @@
 
 outfile=` echo "$outfile" | sed -e 's/\.\(so\|o\)$//' `'.@SOEXT@'
 
-ldcmd="@SHARED_CC@ @PICFLAGS@ @LDSOFLAGS@ @DLFLAGS@ $libdirs @LDFLAGS@ -o $outfile \
- $args" # @LIBS@
+ldcmd="@SHARED_CC@ @PICFLAGS@ @LDSOFLAGS@ @DLFLAGS@ $libdirs @LDFLAGS@ -o $outfile $args @LIBS@ -install_name @prefix@/lib/$outfile"
 
 echo "$ldcmd"
 eval "$ldcmd" || exit
