1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
hybrid-dev
==========
To compile a module for ircd-hybrid, make sure this hybrid-dev is the
same version as the ircd-hybrid you're compiling for.
Then use:
gcc -I/usr/include/ircd-hybrid-8 -fPIC -DPIC -shared -g m_foo.c -o m_foo.so
to compile the module. Or you can use the quick shell script
`mbuild-hybrid' that is in this package which essentially does the same
thing. See mbuild-hybrid(1) for further information. Remember that you
may need to link shared libraries to it.
I have not tried loading modules built with a different version of gcc
than the one the ircd was built with. I believe it should be okay, though.
-- Joshua Kwan <joshk@triplehelix.org> Sun, 30 Mar 2003 00:29:48 -0800
|