From 7ae4896703deb2ec8e73c90051a5c9503f090a75 Mon Sep 17 00:00:00 2001 From: Greg Hewgill Date: Sat, 23 Apr 2011 00:20:38 +1200 Subject: [PATCH] Makefile: handle case where LDFLAGS is already defined (in dmake) --- tools/dmake.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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";