]> git.saurik.com Git - bison.git/commitdiff
build: fix paths.
authorAkim Demaille <demaille@gostai.com>
Wed, 1 Jul 2009 10:19:09 +0000 (12:19 +0200)
committerAkim Demaille <demaille@gostai.com>
Wed, 12 Aug 2009 12:12:13 +0000 (14:12 +0200)
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.

ChangeLog
doc/local.mk
src/local.mk

index 73fa4028d101863a46252c9c01dceb33c66ebc06..6fb1ae22e320e03ececf1bc8414da02322bd6bd6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2009-08-12  Akim Demaille  <demaille@gostai.com>
+
+       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.
+
 2009-08-12  Akim Demaille  <demaille@gostai.com>
 
        distcheck: fix.
index cf68a98ab8a1616fa91bb82e40431f3c2f63d043..cb7d00d12e5491e28a7c6ccd81cb42546f82fdb2 100644 (file)
@@ -35,7 +35,7 @@ $(CROSS_OPTIONS_TEXI): $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
        { test ! -f $@ || cat $@; } >$@~
        test ! -f $@.tmp || rm -f $@.tmp
        $(MAKE) $(AM_MAKEFLAGS) src/bison$(EXEEXT)
-       $(top_builddir)/src/bison --help |                               \
+       src/bison --help |                               \
          perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >$@.tmp
        diff -u $@~ $@.tmp || true
        mv $@.tmp $@
index 7351b275604e32867d4bca0fba23bad474943130..753172b0f1b8ec13122df0f201abb757ea0b9bdd 100644 (file)
@@ -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