bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU Bison 1.875] testsuite: 4 38 39 40 41 42 44 52 53 54 55 56 5 7


From: Paul Eggert
Subject: Re: [GNU Bison 1.875] testsuite: 4 38 39 40 41 42 44 52 53 54 55 56 5 7 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 95 96 97 98 99 100 101 102 103 104 failed
Date: 10 Feb 2003 15:56:09 -0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3

"Lentz, Robert, CTR, OSD-ATL" <address@hidden> writes:

> Part of the problem, and many gnu packages seem to have this, is that
> configure doesn't get my LDFLAGS environment variable propagated to all
> Makefiles properly.

Can you please try this tentative patch?  It should fix the LDFLAGS
problem, and also a similar problem with LIBS.  Please install
Autoconf 2.57 and Automake 1.7.2 before applying this patch and
running "make check", since they're needed to regenerate the
testsuite.

If you have other problems besides those two vars, please let
<address@hidden> know.  Thanks.

2003-02-10  Paul Eggert  <address@hidden>

        * tests/atlocal.in (LDFLAGS, LIBS): New vars.
        * tests/testsuite.at (AT_COMPILE): Use them.
        This fixes the testsuite problem reported by Robert Lentz in
        <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00011.html>.

diff -ru bison-1.875/tests/atlocal.in bison-1.875-fix/tests/atlocal.in
--- bison-1.875/tests/atlocal.in        Thu Nov 14 01:58:01 2002
+++ bison-1.875-fix/tests/atlocal.in    Mon Feb 10 15:05:48 2003
@@ -13,3 +13,9 @@
 
 # Is the compiler GCC?
 GCC='@GCC@'
+
+# Are special link options needed?
+LDFLAGS='@LDFLAGS@'
+
+# Are special libraries needed?
+LIBS='@LIBS@'
diff -ru bison-1.875/tests/testsuite.at bison-1.875-fix/tests/testsuite.at
--- bison-1.875/tests/testsuite.at      Thu Nov 14 01:58:01 2002
+++ bison-1.875-fix/tests/testsuite.at  Mon Feb 10 15:53:01 2003
@@ -52,10 +52,11 @@
 
 # AT_COMPILE(OUTPUT, [SOURCES = OUTPUT.c])
 # ----------------------------------------
-#
+# Compile SOURCES into OUTPUT.  If OUTPUT does not contain '.',
+# assume that we are linking too; this is a hack.
 m4_define([AT_COMPILE],
-[AT_CHECK([$CC $CFLAGS $CPPFLAGS m4_default([$2], [$1.c]) -o $1], 0,
-          [], [ignore])])
+[AT_CHECK([$CC $CFLAGS $CPPFLAGS m4_bmatch([$1], [[.]], [], [$LDFLAGS 
])m4_default([$2], [$1.c]) m4_bmatch([$1], [[.]], [], [$LIBS ])-o $1],
+         0, [], [ignore])])
 
 
 # AT_PARSER_CHECK(COMMAND, EXIT-STATUS, EXPOUT, EXPERR)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]