On Sat, 2003-01-25 at 17:59, Frank Heckenbach wrote:
Richard D. Jackson wrote:
Is it possible to make libgpc.a a shared lib? If so how do I go about it?
I've only tested it under Linux so far. There's no "official" support, and configure doesn't support it, but adding `WITH_SHARED=yes' on the make command line should work.
Great I will try that out. I'm on a linux system so I hope it works.
I suppose other systems might need some different options etc. in the makefile. If you provide them, I'll happily accept them, but I don't have the time now to do any debugging or give further advice there.
There's a small bug, in rts/Makefile.in, gpc_minor must be 1 (will be fixed in the next version).
Note that the RTS interface might change with each GPC version, so the shared lib will have to be rebuilt for each one (and the old ones kept if you have any exetuables using them).
Not a problem. I will just rename the lib to libgpc-20021128.so and pass that to the linker on the command line and see if it works. Even though right now that will not be big deal later it might be.
richard