diff --git a/tools/dmake.cpp b/tools/dmake.cpp index ae20be0f2..8912c2491 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -248,7 +248,9 @@ int main(int argc, char **argv) fout << "ifeq ($(HAVE_RULES),yes)\n" << " CXXFLAGS += -DHAVE_RULES\n" - << " ifndef LDFLAGS\n" + << " ifdef LDFLAGS\n" + << " LDFLAGS += -lpcre\n" + << " else\n" << " LDFLAGS=-lpcre\n" << " endif\n" << "endif\n\n";