From fc030471140717e044a66f5654d1ebcf09d42503 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 24 Jul 2014 22:42:28 +0200 Subject: [PATCH] build: Do not hardcode gcc in depend.sh. Although the clang compiler understands the -MM and -MG options, we currently rely on gcc to generate the dependency files. Of course this fails on systems where only clang is installed. The right fix would be to use the make variable $(CC), but let's go for the minimal fix that replaces gcc by cc in depend.sh for now. --- depend.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depend.sh b/depend.sh index 746b0d2b..c6424daa 100755 --- a/depend.sh +++ b/depend.sh @@ -20,6 +20,6 @@ shift shift shift -LC_ALL=C gcc -MM -MG "$@" \ +LC_ALL=C cc -MM -MG "$@" \ | sed -e "s@^\(.*\)\.o:@$dep_dir/\1.d $object_dir/\1.o:@" \ -e "s@[ ^]\([a-zA-Z0-9_]\{1,\}\.cmdline.h\)@ $cmdline_dir/\1@g" -- 2.39.5