From b282660d3981540c8c9b588c25fcd8537a567988 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 21 Mar 2010 09:50:14 -0400 Subject: build: fixed issue with CC="ccache cc" on solaris --- buildtools/waf-svn | Bin 90844 -> 90922 bytes buildtools/wafsamba/samba_autoconf.py | 10 ++++++++++ 2 files changed, 10 insertions(+) (limited to 'buildtools') diff --git a/buildtools/waf-svn b/buildtools/waf-svn index 983a5a9e68..7dbc81a86c 100755 Binary files a/buildtools/waf-svn and b/buildtools/waf-svn differ diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index e91409e0a4..1c1095ea47 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -418,3 +418,13 @@ def CHECK_RPATH_SUPPORT(conf): execute=True, msg='Checking for rpath support', cflags='-Wl,-rpath=.') + +@conf +def CHECK_CC_ENV(conf): + '''trim whitespaces from 'CC'. + The build farm sometimes puts a space at the start''' + if os.environ.get('CC'): + conf.env.CC = TO_LIST(os.environ.get('CC')) + if len(conf.env.CC) == 1: + # make for nicer logs if just a single command + conf.env.CC = conf.env.CC[0] -- cgit