Skip to content

Commit

Permalink
Fix library dependencies on some *nix
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Feb 17, 2024
1 parent 2c987ee commit 9a0dddf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ft2nfdump/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ bin_PROGRAMS = ft2nfdump

ft2nfdump_SOURCES = ft2nfdump.c
ft2nfdump_CFLAGS = @FT_INCLUDES@
ft2nfdump_LDADD = ../lib/libnfdump.la -lft -lz
ft2nfdump_LDADD = ../lib/libnfdump.la ../maxmind/libmaxmind.a -lft -lz
ft2nfdump_LDADD += @FT_LDFLAGS@

2 changes: 1 addition & 1 deletion src/nfanon/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ LDADD = $(DEPS_LIBS)
anon = panonymizer.c panonymizer.h rijndael.c rijndael.h

nfanon_SOURCES = nfanon.c $(anon)
nfanon_LDADD = ../lib/libnfdump.la
nfanon_LDADD = ../lib/libnfdump.la ../maxmind/libmaxmind.a

CLEANFILES = *.gch
2 changes: 1 addition & 1 deletion src/nfcapd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AM_CPPFLAGS = -I../include -I../lib -I../inline -I../netflow -I../collector -I..
AM_LDFLAGS = -Llib

nfcapd_SOURCES = nfcapd.c
nfcapd_LDADD = ../netflow/libnetflow.a ../lib/libnfdump.la ../collector/libcollector.a -lm
nfcapd_LDADD = ../netflow/libnetflow.a ../lib/libnfdump.la ../maxmind/libmaxmind.a ../collector/libcollector.a -lm
nfcapd_LDFLAGS = -L../lib

if READPCAP
Expand Down
2 changes: 1 addition & 1 deletion src/nfexpire/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ AM_LDFLAGS = -L../lib
LDADD = $(DEPS_LIBS)

nfexpire_SOURCES = nfexpire.c
nfexpire_LDADD = ../lib/libnfdump.la ../collector/libcollector.a
nfexpire_LDADD = ../lib/libnfdump.la ../maxmind/libmaxmind.a ../collector/libcollector.a

CLEANFILES = *.gch
2 changes: 1 addition & 1 deletion src/nfpcapd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pcaproc = pcaproc.c pcaproc.h nflog.h pflog.h flowtree.c flowtree.h

nfpcapd_SOURCES = nfpcapd.c packet_pcap.c packet_pcap.h \
$(pcaproc) $(pcapdump) $(flowdump) $(flowsend)
nfpcapd_LDADD = ../lib/libnfdump.la ../collector/libcollector.a -lm
nfpcapd_LDADD = ../lib/libnfdump.la ../maxmind/libmaxmind.a ../collector/libcollector.a -lm
if BSDBPF
nfpcapd_SOURCES += packet_bpf.c
AM_CPPFLAGS += -DUSE_BPFSOCKET
Expand Down
2 changes: 1 addition & 1 deletion src/nfreader/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ AM_LDFLAGS = -L../lib
LDADD = $(DEPS_LIBS)

nfreader_SOURCES = nfreader.c
nfreader_LDADD = ../lib/libnfdump.la
nfreader_LDADD = ../lib/libnfdump.la ../maxmind/libmaxmind.a

CLEANFILES = *.gch
2 changes: 1 addition & 1 deletion src/sflow/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AM_LDFLAGS = -L../lib
sflow = sflow_nfdump.c sflow_nfdump.h sflow.h sflow_v2v4.h sflow_process.c sflow_process.h
sfcapd_SOURCES = sfcapd.c \
$(sflow) $(launch)
sfcapd_LDADD = ../lib/libnfdump.la ../collector/libcollector.a -lm
sfcapd_LDADD = ../lib/libnfdump.la ../maxmind/libmaxmind.a ../collector/libcollector.a -lm

if READPCAP
sfcapd_CFLAGS = -DPCAP
Expand Down
2 changes: 1 addition & 1 deletion src/test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ AM_LDFLAGS = -L../lib
LDADD = $(DEPS_LIBS)

nfgen_SOURCES = nfgen.c
nfgen_LDADD = ../lib/libnfdump.la
nfgen_LDADD = ../lib/libnfdump.la ../maxmind/libmaxmind.a

nftest_SOURCES = nftest.c
nftest_LDADD = ../lib/libnfdump.la ../maxmind/libmaxmind.a
Expand Down

0 comments on commit 9a0dddf

Please sign in to comment.