From 5d725b20c94c24c82a5c9429d28e0b5c3a762bfc Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Wed, 23 Jul 2014 11:02:56 +0000 Subject: Fix clang build on 9.x Apparently this version doesn't understand empty arguments in CFLAGS using commas; i.e. ,-I/usr/local/include throws an error about nonexisting file ,- Reported by: Kenta S (kentas@hush.com) --- net-p2p/transmission-cli/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'net-p2p/transmission-cli/Makefile') diff --git a/net-p2p/transmission-cli/Makefile b/net-p2p/transmission-cli/Makefile index f1120bac7c10..255c8bc2b757 100644 --- a/net-p2p/transmission-cli/Makefile +++ b/net-p2p/transmission-cli/Makefile @@ -45,8 +45,12 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} CONFIGURE_ARGS=--with-zlib=/usr \ ${EXTRA_CONF_ARGS} -CONFIGURE_ENV+= OPENSSL_LIBS=${OPENSSL_LDFLAGS} \ - OPENSSL_CFLAGS=${OPENSSL_CFLAGS},-I${OPENSSLINC} +CONFIGURE_ENV+= OPENSSL_LIBS=${OPENSSL_LDFLAGS} +.if empty(OPENSSL_CFLAGS) +CONFIGURE_ENV+= OPENSSL_CFLAGS=-I${OPENSSLINC} +.else +CONFIGURE_ENV+= OPENSSL_CFLAGS=${OPENSSL_CFLAGS},-I${OPENSSLINC} +.endif EXTRA_CONF_ARGS?=--enable-cli \ --disable-daemon \ --without-gtk \ -- cgit v1.2.3