]> The Tcpdump Group git mirrors - tcpslice/commitdiff
Makefile.in: Fix the depend target
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 9 Apr 2024 07:45:15 +0000 (09:45 +0200)
committerfxlb <[email protected]>
Tue, 9 Apr 2024 11:49:15 +0000 (11:49 +0000)
Fix an error on Solaris 10 like:
./mkdep: /opt/solarisstudio12.3/bin/cc -D_STDC_C99=: not found

When configure get some compiler option like:
checking for /opt/solarisstudio12.3/bin/cc option to accept ISO C99...
-D_STDC_C99=
Makefile will contain:
CC = /opt/solarisstudio12.3/bin/cc -D_STDC_C99=

And if we use '-c "$(CC)"' mkdep will set and try to run:
CC="/opt/solarisstudio12.3/bin/cc -D_STDC_C99=", which is incorrect.

Remove the quotes to allow mkdep to set CC with the compiler name and
set flags with the option.

Makefile.in

index d120ce06c724f1e3ea6856ce7a4f08d3c0da337e..25364a435fe368b8c80f0917cc4d298a78e0caa5 100644 (file)
@@ -242,7 +242,7 @@ whitespacecheck:
        fi
 
 depend:
-       $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC)
+       $(MKDEP) -c $(CC) -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC)
 
 shellcheck:
        shellcheck -f gcc -e SC2006 autogen.sh build.sh build_matrix.sh build_common.sh mkdep .ci-coverity-scan-build.sh