[Snort-devel] LDFLAGS and LIBS in snort v2.0 vs 2.1

Martin Olsson elof at ...969...
Fri Jan 23 05:59:10 EST 2004

This is not a bugreport, just a report of strange behaviour.

The variables LDFLAGS and LIBS in src/Makefile are not the same in snort
v2.1.x as in the earlier versions.

In snort v1.x and 2.0.x all libs were listed in LIBS and search-paths were
listed in LDFLAGS.
In snort v2.1.1 build 17 (from CVS) there are search-paths and libs mixed
in the LDFLAGS variable.

Example from snort v2.1.1 build 17:

LDFLAGS = -L/usr/local/lib -lpcre -lcrypt -pthread -L/usr/local/lib -lprelude
LIBS = -lpcre -lpcap -lm

Shouldn't -lpcre, -lcrypt and -lprelude be moved into the LIBS variable?
(note: -lpcre is specified twice)


More information about the Snort-devel mailing list