summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-11-12 15:45:21 +0100
committerBram Moolenaar <Bram@vim.org>2014-11-12 15:45:21 +0100
commitb103138b1e9ff2330901a0bc06378d2e5ed4f9ae (patch)
treef987e5f2a4137ee8d6af79fe88fbaa9e52f4ca00 /src/Makefile
parent3a0c90898338c04bde314bede9f116f299eaddef (diff)
updated for version 7.4.510v7.4.510
Problem: "-fwrapv" argument breaks use of cproto. Solution: Remove the alphabetic arguments in a drastic way.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index 39e2de99f9..6bf8c1737d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1779,13 +1779,12 @@ update-po:
proto: $(PRO_AUTO) $(PRO_MANUAL)
# Filter out arguments that cproto doesn't support.
-# Don't pass "-pthread" to cproto, it sees it as a list of individual flags.
-# Don't pass "-fstack-protector" to cproto, for the same reason.
-# Don't pass "-g" to cproto.
+# Don't pass "-pthread", "-fwrapv" and similar arguments to cproto, it sees
+# them as a list of individual flags.
# The -E"gcc -E" argument must be separate to avoid problems with shell
# quoting.
CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
- `echo '$(LINT_CFLAGS)' | sed -e 's/-pthread//g' -e 's/-fstack-protector//g' -e 's/\ -g\ / /g'`
+ `echo '$(LINT_CFLAGS)' | sed -e 's/ -[a-z-]\+//g'`
### Would be nice if this would work for "normal" make.
### Currently it only works for (Free)BSD make.