Skip to content

Commit 498a36e

Browse files
committed
Makefile.in: Fix the depend target
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. (cherry picked from commit db1e124)
1 parent 6154a22 commit 498a36e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ testlist:
575575
echo $(TEST_DIST)
576576

577577
depend:
578-
@echo $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) '<libnetdissect src list>'
579-
@$(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) $(LIBNETDISSECT_SRC)
578+
@echo $(MKDEP) -c $(CC) -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) '<libnetdissect src list>'
579+
@$(MKDEP) -c $(CC) -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) $(LIBNETDISSECT_SRC)
580580

581581
shellcheck:
582582
shellcheck -f gcc -e SC2006 autogen.sh build.sh build_matrix.sh build_common.sh .ci-coverity-scan-build.sh

0 commit comments

Comments
 (0)