openbsd-ports/converters/pflogx/patches/patch-src_Makefile
2009-03-24 17:01:33 +00:00

32 lines
789 B
Plaintext

$OpenBSD: patch-src_Makefile,v 1.1 2009/03/24 17:01:33 naddy Exp $
--- src/Makefile.orig Tue Mar 24 16:03:10 2009
+++ src/Makefile Tue Mar 24 16:04:25 2009
@@ -1,7 +1,7 @@
CXXFLAGS += -Wall -I../include
EXPAT_OBJECTS =
-LDFLAGS += -lpcap
+LIBS += -lpcap
OS!=uname -s
# Debug
@@ -29,7 +29,8 @@ EXPAT_LIBDIR ?= /usr/local/lib
.endif
CXXFLAGS += -I$(EXPAT_INCLUDEDIR) -DWITH_EXPAT
-LDFLAGS += -L$(EXPAT_LIBDIR) -lexpat
+LDFLAGS += -L$(EXPAT_LIBDIR)
+LIBS += -lexpat
# Sources
EXPAT_OBJECTS = LogEntryParser.o XmlFileParser.o
@@ -43,7 +44,7 @@ OBJECTS = pflogx.o CmdLineParser.o EntriesFilter.o Log
all: $(PFLOGX)
$(PFLOGX): $(OBJECTS)
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
.SUFFIXES: .cpp
.cpp.o: