Ossama Othman wrote:
> 
> Hi,
> 
> There was a slight bug in the patch I just posted, but I think that
> you get the idea of what it was supposed to do.

You were talking about the the, no? :)

OK, it doesn't work. 
I patched your patch to have some debug output:
     + echo "new_predeps $new_predeps"
     + echo "libs $libs"
     + echo "predepds $predeps_lib_path"
       libs="$new_predeps $libs $predeps_lib_path $postdeps"

And this is the result:

/bin/sh ../libtool --mode=link g++  -g -ansi -D_XOPEN_SOURCE
-D_BSD_SOURCE -fno-exceptions -fno-rtti -fno-check-new -Wall -pedantic
-W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long
-fno-builtin -frtti -DQT_CLEAN_NAMESPACE  -L/usr/X11R6/lib
-L/home/coolo/prod/qt/lib -L/home/coolo/prod/KDE/lib  -o dcopserver.la
-rpath /home/coolo/prod/KDE/lib -module -avoid-version dcopserver.lo
libDCOP.la
new_predeps
libs  -L/usr/X11R6/lib -L/home/coolo/prod/qt/lib
-L/home/coolo/prod/KDE/lib libDCOP.la
predepds  -L/usr/lib/gcc-lib/i386-linux/egcs-2.91.66
-L/usr/i386-linux/lib
rm -fr  .libs/dcopserver.la .libs/dcopserver.lai .libs/dcopserver.so
g++ -shared -nostdlib /usr/lib/crti.o
/usr/lib/gcc-lib/i386-linux/egcs-2.91.66/crtbeginS.o 
.libs/dcopserver.o  -L/usr/lib -L/usr/i386-linux/lib
-L/usr/lib/gcc-lib/i386-linux/egcs-2.91.66 -L/usr/X11R6/lib
-L/home/coolo/prod/qt/lib -L/home/coolo/prod/KDE/lib ./.libs/libDCOP.so
-lstdc++ -lm -lc
-lgcc  -lc /usr/lib/gcc-lib/i386-linux/egcs-2.91.66/crtendS.o
/usr/lib/crtn.o  -Wl,-soname -Wl,dcopserver.so -o .libs/dcopserver.so
creating dcopserver.la  

Note, that /usr/lib is unknown at the point the code runs you've patched

Greetings, Stephan

-- 
... but you ain't had mine

Reply via email to