Makefile: handle case where LDFLAGS is already defined

This commit is contained in:
Greg Hewgill 2011-04-22 11:07:49 +12:00
parent 04309f74f5
commit d80fc17ed9
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ endif
ifeq ($(HAVE_RULES),yes)
CXXFLAGS += -DHAVE_RULES
ifndef LDFLAGS
ifdef LDFLAGS
LDFLAGS += -lpcre
else
LDFLAGS=-lpcre
endif
endif