Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2012 18:48:27 GMT
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164606: [patch] Add option to devel/ccache to statically build ccache
Message-ID:  <201201291848.q0TImRon000434@red.freebsd.org>
Resent-Message-ID: <201201291850.q0TIoDk2065357@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164606
>Category:       ports
>Synopsis:       [patch] Add option to devel/ccache to statically build ccache
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 29 18:50:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        9.0-RELEASE
>Organization:
Rochester Institute of Technology
>Environment:
>Description:
When using tinderbox, having a statically built copy of ccache is ideal as the same shared libraries do not exist under FreeBSD 7, 8, 9 and 10.

Most users of tinderbox build ccache under each jail, which is time consuming.  This will allow one copy of ccache to be usable regardless of which jail is used.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/ccache/Makefile,v
retrieving revision 1.67
diff -u -r1.67 Makefile
--- Makefile	8 Jan 2012 21:16:53 -0000	1.67
+++ Makefile	29 Jan 2012 18:45:07 -0000
@@ -26,7 +26,8 @@
 PORTDOCS=	ccache-howto-freebsd.txt MANUAL.html
 
 OPTIONS=	CLANGLINK	"Create clang compiler links if clang is installed" off \
-		LLVMLINK	"Create llvm compiler links if llvm is installed" off
+		LLVMLINK	"Create llvm compiler links if llvm is installed" off \
+		STATIC		"Statically build ccache" off
 
 .include <bsd.port.pre.mk>
 
@@ -47,6 +48,10 @@
 CCACHE_COMPILERS+=	llvm-gcc llvm-c++ llvm-g++
 .endif
 
+.if defined(WITH_STATIC)
+LDFLAGS+=		"--static"
+.endif
+
 CCACHE_COMPILERS+=	${EXTRA_COMPILERS}
 SUB_LIST+=	CCACHE_COMPILERS="${CCACHE_COMPILERS}" \
 		CCLINKDIR="${CCLINKDIR}" \


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201291848.q0TImRon000434>