diff options
author | sbd <sbd@pkgsrc.org> | 2011-12-18 23:08:29 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2011-12-18 23:08:29 +0000 |
commit | 3dc6d7340c5cbf6a3a737f26bb325b7096fb9413 (patch) | |
tree | 140a115a5dcbbec010f81f13827b4332ba8224e7 /games/netris | |
parent | e9c4e00d16552b98a36922e4fee7a131125ffe35 (diff) | |
download | pkgsrc-3dc6d7340c5cbf6a3a737f26bb325b7096fb9413.tar.gz |
Only add --cextra/--lextra to CONFIGURE_ARGS if CFLAGS/LDFLAGS are non empty.
Diffstat (limited to 'games/netris')
-rw-r--r-- | games/netris/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/netris/Makefile b/games/netris/Makefile index c6e0ace51cc..a25878fb3cf 100644 --- a/games/netris/Makefile +++ b/games/netris/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2011/12/17 10:15:44 sbd Exp $ +# $NetBSD: Makefile,v 1.15 2011/12/18 23:08:29 sbd Exp $ # DISTNAME= netris-0.52 @@ -20,8 +20,8 @@ PKG_DESTDIR_SUPPORT= user-destdir USE_TOOLS+= gmake HAS_CONFIGURE= YES CONFIGURE_SCRIPT= ./Configure -CONFIGURE_ARGS+= --cextra ${CFLAGS:Q} -CONFIGURE_ARGS+= --lextra ${LDFLAGS:Q} +CONFIGURE_ARGS+= ${!empty(CFLAGS):?--cextra ${CFLAGS:Q}:} +CONFIGURE_ARGS+= ${!empty(LDFLAGS):?--lextra ${LDFLAGS:Q}:} .include "options.mk" |