Skip to content

Commit

Permalink
Remove -O2 or other optimization flags from cproto
Browse files Browse the repository at this point in the history
When running cproto on Cygwin, the flags might include -O2, but it
causes the stderr to be written to a file "2".  Strip them.
  • Loading branch information
k-takata committed Sep 21, 2018
1 parent 3f3fb0b commit cbfcba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@ proto: $(PRO_AUTO) $(PRO_MANUAL)
# 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/ -[a-z-]\+//g'`
`echo '$(LINT_CFLAGS)' | sed -e 's/ -[a-z-]\+//g' -e 's/ -O[^ ]\+//g'`

### Would be nice if this would work for "normal" make.
### Currently it only works for (Free)BSD make.
Expand Down

0 comments on commit cbfcba6

Please sign in to comment.