diff options
author | dholland <dholland> | 2012-04-28 05:55:10 +0000 |
---|---|---|
committer | dholland <dholland> | 2012-04-28 05:55:10 +0000 |
commit | 227fad358b11a228e0895b323fe4baadbd2877b5 (patch) | |
tree | 62e9d2ffb452883dbee4854c8824b0e96ffba274 | |
parent | 82fb008153281b35aed427d293e7d9873a9ea1dc (diff) | |
download | pkgsrc-227fad358b11a228e0895b323fe4baadbd2877b5.tar.gz |
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.
-rw-r--r-- | chat/ircservices/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
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 |