Subject: mac68k equivalent of --export-dynamic?
To: None <port-mac68k@netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: port-mac68k
Date: 01/09/1999 22:14:16
I have a program which loads some shared libraries which were not
originally linked with the program.  The shared libraries need access to
one of the routines in the main program.  On ELF systems, the answer
appears to be (from the NetBSD/alpha FAQ):

Q:    I dynamically loaded a module at run-time and it couldn't find
      symbols from my program image.
                                
A:    You probably left off the --export-dynamic option when linking the
      application. This is required only if arbitrary symbols in the
      program might be needed by the dynamically loaded module, for
      example, if a program intends to make run-time decisions to
      dynamically oad modules it was never linked with. Note, when running
      cc(1) instead of ld(1) this will be specified as 
      -Wl,--export-dynamic.
          

anyway, this works on the NetBSD/pmax system I have, but not on my mac68k 
(ld says --export-dynamic is an unknown option). So my question is, is
there an equivalent thing to --export-dynamic for non-ELF systems such as
the mac68k?

Thanks

-Dan