Skip to contentSkip to conversation

Help building shared version of libiptc library (libiptc.so)

DISCUSSION Samuel Richard 1 participant 1 message Jul 19, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to use jnetfilter, which requires that I generate a shared version of libiptc. Here's what they say:

"In order to get the jnetfilter package to work, you also have to download the source code of iptables (from www.netfilter.org or www.iptables.org), and modify the Makefile slightly to generate a shared version of the libiptc.a library (libiptc.so)."

They also privide us with a modified version of the makefile which looks like that:

TOPLEVEL_INCLUDED=YES
NETFILTER_VERSION=1.2.1a
CFLAGS=-Wl,-export-dynamic -fPIC -shared -DNETFILTER_VERSION=\"1.2.1a\"

libiptc/libiptc.so : Makefile.libiptc libiptc/libiptc.c

	gcc $(CFLAGS) libiptc/libip4tc.c -o libiptc/libiptc.so

I tried to modify my makefile without any success... Does anyone know how to do this?

Thanks,

Sam