[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
More questions about writing extensions.
Lets say I have 2 libraries that i want to interface to, lib1 and lib2 and
lib2 uses lib1. I also have an additional .module that I created for
miscellaneous stuff that my libraries (mylib1, mylib2) will use. When
using my module should I create an so and if so where can I put it so that
mylib1.so and mylib2.so can pick it up? Does it have to be in the users
LD_LIBRARY_PATH or users /etc/ld.so.conf or can I put it in the PLT
directories somewhere?
I would like to be able to write 2 shareable objects mylib1.so and
mylib2.so and be able to load just mylib1.so or load mylib2.so and
mylib1.so. I was wondering if I could accomplish this with using units and
having the files mylib1.ss and mylib2.ss?
The last question I have regards when loading in units. I noticed that
in some cases after a unit is loaded the functions are have the unit name
prepended and others do not, like the pop unit with pop:. Is that
functionality created by the require-library only or is it possible to make
it happen all the time or should it be specified by the user?
RJA