>>>>> Neil Youngman writes:

 > We have a system, which uses dlopen() to load some libraries.
 > On Solaris and SCO system V we create a library with a line like:

 >      cc -fpic a.o b.o -ly -o libx.so

 > then when we load libx with dlopen() it also loads liby.so. 
 > On Linux we have been unable to get this to work. There are 
 > possible workarounds, but we would like to stick with the 
 > same solution that we already use on our other systems. 

 > Does anyone if this can be made to work on Linux?
Which libc are you using?


The following should work with glibc2:
cc -fpic a.o b.o -shared -ly -o libx.so

If this doesn't work with glibc2, please supply a short test (just two
or three simple files) showing the problem.

Andreas
-- 
 Andreas Jaeger   [EMAIL PROTECTED]    [EMAIL PROTECTED]
  for pgp-key finger [EMAIL PROTECTED]

Reply via email to