Mercurial > vim
comparison src/Makefile @ 3933:de6968039340 v7.3.722
updated for version 7.3.722
Problem: Perl flags may contain "-g", which breaks "make proto".
Solution: Filter out the "-g" flag for cproto. (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 20 Nov 2012 17:03:27 +0100 |
parents | c03b6363492b |
children | 17a312ba38a0 |
comparison
equal
deleted
inserted
replaced
3932:105ad6e978e9 | 3933:de6968039340 |
---|---|
1751 proto: $(PRO_AUTO) $(PRO_MANUAL) | 1751 proto: $(PRO_AUTO) $(PRO_MANUAL) |
1752 | 1752 |
1753 # Filter out arguments that cproto doesn't support. | 1753 # Filter out arguments that cproto doesn't support. |
1754 # Don't pass "-pthread" to cproto, it sees it as a list of individual flags. | 1754 # Don't pass "-pthread" to cproto, it sees it as a list of individual flags. |
1755 # Don't pass "-fstack-protector" to cproto, for the same reason. | 1755 # Don't pass "-fstack-protector" to cproto, for the same reason. |
1756 # Don't pass "-g" to cproto. | |
1756 # The -E"gcc -E" argument must be separate to avoid problems with shell | 1757 # The -E"gcc -E" argument must be separate to avoid problems with shell |
1757 # quoting. | 1758 # quoting. |
1758 CPROTO = cproto $(PROTO_FLAGS) -DPROTO \ | 1759 CPROTO = cproto $(PROTO_FLAGS) -DPROTO \ |
1759 `echo '$(LINT_CFLAGS)' | sed -e 's/-pthread//g' -e 's/-fstack-protector//g'` | 1760 `echo '$(LINT_CFLAGS)' | sed -e 's/-pthread//g' -e 's/-fstack-protector//g' -e 's/\ -g\ / /g'` |
1760 | 1761 |
1761 ### Would be nice if this would work for "normal" make. | 1762 ### Would be nice if this would work for "normal" make. |
1762 ### Currently it only works for (Free)BSD make. | 1763 ### Currently it only works for (Free)BSD make. |
1763 #$(PRO_AUTO): $$(*F).c | 1764 #$(PRO_AUTO): $$(*F).c |
1764 # $(CPROTO) -DFEAT_GUI $(*F).c > $@ | 1765 # $(CPROTO) -DFEAT_GUI $(*F).c > $@ |