mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 21:33:04 +00:00
build: fix paths.
When using $(top_builddir) inconsistently, Make (including GNU Make) is sometimes confused. As a result it may want to build lib/libbison.la and $(top_builddir)/lib/libbison.la (the same file, different names) concurrently, which, amusingly enough, might end with: ranlib lib/libbison.a ranlib lib/libbison.a make[2]: *** [lib/libbison.a] Segmentation fault on OS X. * doc/local.mk, src/local.mk: Do not use $(top_builddir) when not needed.
This commit is contained in:
@@ -20,11 +20,11 @@ AM_CPPFLAGS += -I$(top_srcdir)/lib
|
||||
# Find builddir/src/scan-code.c etc.
|
||||
AM_CPPFLAGS += -I$(top_builddir)
|
||||
|
||||
LDADD = $(top_builddir)/lib/libbison.a $(LIBINTL)
|
||||
LDADD = lib/libbison.a $(LIBINTL)
|
||||
|
||||
# Use our own Bison to build the parser. Of course, you ought to
|
||||
# keep a sane version of Bison nearby...
|
||||
BISON = $(top_builddir)/tests/bison
|
||||
BISON = tests/bison
|
||||
YACC = $(BISON) -y
|
||||
AM_YFLAGS = -dv --warnings=all,error --report=all
|
||||
|
||||
|
||||
Reference in New Issue
Block a user