From f8cfae2d2986048f3900e5b45137588b0cee19d8 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 28 Apr 2012 05:55:10 +0000 Subject: Cope with CFLAGS and/or LDFLAGS being empty too. I don't entirely understand what goes on without this change, but I was definitely getting "-cflags -lflags -Wl..." as configure arguments, and now it works. --- chat/ircservices/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chat') diff --git a/chat/ircservices/Makefile b/chat/ircservices/Makefile index 0a9a58db6c3..139c542acf2 100644 --- a/chat/ircservices/Makefile +++ b/chat/ircservices/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2012/04/25 12:20:48 obache Exp $ +# $NetBSD: Makefile,v 1.40 2012/04/28 05:55:10 dholland Exp $ # DISTNAME= ircservices-5.0.64 @@ -28,8 +28,8 @@ BUILD_DEFS= VARBASE CONFIGURE_ARGS+= -prefix ${PREFIX:Q} CONFIGURE_ARGS+= -cc ${CC:Q} -CONFIGURE_ARGS+= -cflags ${CFLAGS:Q} -CONFIGURE_ARGS+= -lflags ${LDFLAGS:Q} +CONFIGURE_ARGS+= ${empty(CFLAGS):?:-cflags ${CFLAGS:Q}} +CONFIGURE_ARGS+= ${empty(LDFLAGS):?:-lflags ${LDFLAGS:Q}} CONFIGURE_ARGS+= ${empty(LIBS):?:-libs ${LIBS:Q}} SUBST_CLASSES+= install -- cgit v1.2.3