mirror of
https://github.com/curl/curl.git
synced 2026-05-17 12:16:19 +03:00
Attempt to quick-fix the getdate problem by post-replacing the getdate.c
file after the bison/yacc process to add the fix Harshal Pradhan suggested.
This commit is contained in:
parent
20057aee2e
commit
ee44677d7e
1 changed files with 2 additions and 3 deletions
|
|
@ -97,9 +97,8 @@ BUILT_SOURCES = $(srcdir)/getdate.c $(top_builddir)/lib/ca-bundle.h
|
|||
|
||||
# Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
|
||||
$(srcdir)/getdate.c: getdate.y
|
||||
cd $(srcdir) && \
|
||||
$(YACC) $(YFLAGS) getdate.y; \
|
||||
mv -f y.tab.c getdate.c
|
||||
cd $(srcdir) && $(YACC) $(YFLAGS) getdate.y && \
|
||||
sed -e 's:YYSTYPE yylval;:YYSTYPE yylval = {0}; /* post-bison fix */:' < y.tab.c > getdate.c && rm -f y.tab.c
|
||||
|
||||
$(top_builddir)/lib/ca-bundle.h: Makefile.in Makefile
|
||||
@if test -f $@; then \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue