Re: Help compiling user space ebtables

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.user
Message-ID <[email protected]>
Op do, 02-02-2006 te 14:02 -0200, schreef Claudio Roberto Cussuol:
> Hi friends
> 
> I'm adding ebtables to a mini distro based on kernel 2.4.32.
> I've download the kernel patch ebtables-brnf-11-2_vs_2.4.31.diff and the user 
> space ebtables-v2.0.8-rc1.tar.gz
> 
> Everything was fine with kernel patch.
> 
> Then I compiled the user space program. It produced a ebtables and a libebtc.so.
> 
> Is there any way to produce a static binary?

It's not difficult. Just add all .o files when compiling into an
executable. There is one extra thing that needs to be done: all _init()
functions of the extensions need to be replaced by unique function names
and need to be called in main().
I'll add a Makefile 'static' option in the next rc.

cheers,
Bart




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.