]> git.ipfire.org Git - thirdparty/automake.git/commit
lex tests: fix spurious link errors on Solaris
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 28 Jun 2011 10:23:48 +0000 (12:23 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 28 Jun 2011 10:24:26 +0000 (12:24 +0200)
commit1d76d3f56efbaf6152ce5a6795fd0b2a3d0d92dd
tree84e18951b69208e25d58c23f4372dc71f3db4378
parent73c31733ff88493f751938451600d6950f9fb0b7
lex tests: fix spurious link errors on Solaris

On Solaris 10, linking of lex-generated programs was failing in a
couple of lex tests with errors like this:
  g++ -g -O2 -o joe joe.o -ll
  Undefined symbol     first referenced in file
  yywrap()             joe.o
  ld: fatal: Symbol referencing errors. No output written to joe
  collect2: ld returned 1 exit status
This change fixes it, also fixing at once potential problems for
systems that don't have a "lex library" (this happens for example
when cross-compiling from GNU/Linux to MinGW).

* tests/lex-depend-cxx.test (joe.ll, moe.l++): Define a dummy
`yywrap()' function.
* tests/lex-clean-cxx.test (mainfoo.cc, mainbar.cpp, mainbaz.c++,
mainqux.cxx): Likewise.
ChangeLog
tests/lex-clean-cxx.test
tests/lex-depend-cxx.test