tests: fix spurious failure on Mac OS X
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 Apr 2012 10:47:43 +0000 (12:47 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 Apr 2012 12:58:24 +0000 (14:58 +0200)
commit1837e206e69dadeffbf3b1364c468235f19d5815
tree8ecd8b09bbeb477c3568577dba23b78e03cc237a
parent509b231118fff35e8f5dbfa797218265e8bc6acc
tests: fix spurious failure on Mac OS X

See automake bug#11306.

* t/lex-libobj.sh: We used to pass LEXLIB='-L /lib' to the ./configure
invocation, to prevent it from explicitly searching for a "lex library".
But the linker on MacOS X 10.5 apparently chokes on that:

  cc -g -O2  -o foo foo.o -L /lib yywrap.o
  ld: file not found: /lib
  collect2: ld returned 1 exit status

So, we now instead pass LEXLIB=' ', which being non-empty is enough
to prevent the search of a "lex library".  And since we are at it,
enhance comments on this non-obvious usage.

Co-authored-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/lex-libobj.sh