Date: Sun, 27 Jul 2014 12:26:29 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 192158] Ccache generates relocation errors Message-ID: <bug-192158-13-ELXLO7M2xR@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-192158-13@https.bugs.freebsd.org/bugzilla/> References: <bug-192158-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192158 --- Comment #3 from melvyn@magemana.nl --- Adding USES=compiler, adding bsd.port.pre.mk and then setting -Qunused-arguments to CPPFLAGS based on COMPILER_TYPE:Mclang, fixes each instance so far. Example: diff -r b22702dddb4e textproc/libxslt/Makefile --- a/textproc/libxslt/Makefile Sun Jul 27 11:27:10 2014 +0200 +++ b/textproc/libxslt/Makefile Sun Jul 27 14:25:51 2014 +0200 @@ -15,7 +15,7 @@ .if !defined(REFERENCE_PORT) -USES= gmake libtool:oldver pathfix +USES= gmake libtool:oldver pathfix compiler GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes @@ -41,6 +41,11 @@ CRYPTO_CONFIGURE_WITH= crypto CRYPTO_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt +.include <bsd.port.pre.mk> +.if !empty(COMPILER_TYPE:Mclang) +CPPFLAGS+= -Qunused-arguments +.endif + post-patch: @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \ ${WRKSRC}/doc/Makefile.in @@ -48,6 +53,6 @@ s|[$$](bindir)/xmllint|../xmllint/xmllint|g' \ ${WRKSRC}/doc/Makefile.in -.include <bsd.port.mk> +.include <bsd.port.post.mk> .endif -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192158-13-ELXLO7M2xR>