]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Do not hardcode gcc in depend.sh.
authorAndre Noll <maan@systemlinux.org>
Thu, 24 Jul 2014 20:42:28 +0000 (22:42 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 31 Jul 2014 18:01:14 +0000 (20:01 +0200)
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

index 746b0d2b1c82914ef96ebbf2a724f03bb872573d..c6424daaf1e7dc6a02ec4bfabe800d9591c0c0b8 100755 (executable)
--- 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"