Skip to content

Commit db1e124

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.
1 parent 7d48702 commit db1e124

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
@@ -559,8 +559,8 @@ testlist:
559559
echo $(TEST_DIST)
560560

561561
depend:
562-
@echo $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) '<libnetdissect src list>'
563-
@$(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) $(LIBNETDISSECT_SRC)
562+
@echo $(MKDEP) -c $(CC) -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) '<libnetdissect src list>'
563+
@$(MKDEP) -c $(CC) -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) $(LIBNETDISSECT_SRC)
564564

565565
shellcheck:
566566
shellcheck -f gcc -e SC2006 autogen.sh build.sh build_matrix.sh build_common.sh mkdep .ci-coverity-scan-build.sh

0 commit comments

Comments
 (0)