File: hybrid-dev.README.Debian

package info (click to toggle)
ircd-hybrid 1%3A8.2.43%2Bdfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,448 kB
  • sloc: ansic: 33,750; sh: 4,765; yacc: 2,474; makefile: 643; lex: 450; cpp: 42
file content (19 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (7)
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