Ah true :-)

On 6 November 2015 at 15:50, Baptiste <[email protected]> wrote:

> On Fri, Nov 6, 2015 at 4:18 PM, David Carlier <[email protected]>
> wrote:
> > Hello,
> >
> > here a tiny change, the USE_PCRE can be easily get forgotten and the user
> > might not necessarly understand the further linkage problem.
> >
> > Not urgent though, just faced one time the problem, would be nice to
> find it
> > for 1.6.3 otherwise it is ok.
> >
> > Please cc [email protected] for any response.
> >
> > Thanks in advance.
> > Kindest regards.
>
>
> David,
>
> You forgot the attachment :)
>
> Baptiste
>
From 19200253f8342ab042ce754a6437186440277037 Mon Sep 17 00:00:00 2001
From: David CARLIER <[email protected]>
Date: Fri, 6 Nov 2015 15:13:06 +0000
Subject: [PATCH] MINOR:	Makefile deviceatlas throwing an error if the
 necessary pcre flag is not passed avoiding surprising bunch of 'undefined
 reference' for the user. Plus a tiny typo in OPENSSL area.

---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3af735e..d42d5fb 100644
--- a/Makefile
+++ b/Makefile
@@ -569,7 +569,7 @@ OPTIONS_OBJS  += src/dlmalloc.o
 endif
 
 ifneq ($(USE_OPENSSL),)
-# OpenSSL is packaged in various forms and with various dependences.
+# OpenSSL is packaged in various forms and with various dependencies.
 # In general -lssl is enough, but on some platforms, -lcrypto may be needed,
 # reason why it's added by default. Some even need -lz, then you'll need to
 # pass it in the "ADDLIB" variable if needed. If your SSL libraries are not
@@ -614,6 +614,9 @@ OPTIONS_OBJS    += src/hlua.o
 endif
 
 ifneq ($(USE_DEVICEATLAS),)
+ifeq ($(USE_PCRE),)
+$(error the DeviceAtlas module needs the PCRE library in order to compile)
+endif
 # Use DEVICEATLAS_SRC and possibly DEVICEATLAS_INC and DEVICEATLAS_LIB to force path
 # to DeviceAtlas headers and libraries if needed.
 DEVICEATLAS_SRC =
-- 
2.6.2

Reply via email to