juda has asked for the wisdom of the Perl Monks concerning the following question:

Hi. I am running on Solaris6 and have my own C library called, say, mylib.so. I am trying to use XS to provide the glue. I have no trouble doing this if I have the library's source (for instance, as shown in XS tutorial example 4 at www.perl.com/pub/doc/manual/html/pod/perlxstut.html"). But what I cannot figure out is how one specifies to load one's own library if it's already built. Does anyone know? the -L option in "h2xs" seems to only be for built-in libraries and "MYEXTLIB" in Makefile.PL seems to refer to a library one is going to build, not one that it already built. Thanks, an XS novice
  • Comment on How do you tell XS to load one's own pre-built .so?

Replies are listed 'Best First'.
RE: How do you tell XS to load one's own pre-built .so?
by Anonymous Monk on Jul 15, 2000 at 22:49 UTC
    Off the top of my head, I'd say to write a short stub with the API you want and then slide the correct .so in later and let the runtime linker deal with it.