fix linking problem with boost

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5629 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-11-13 16:25:17 +00:00
parent e33bbc78ae
commit b0babedcb7
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-11-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lyxsum.C: an ugly hack to compile with non-gnu linkers
2002-11-12 Angus Leeming <aleem@pneumon.bg.ic.ac.uk>
* lstrings.C (getVectorFromString): #if 0 -> #if 1 until Lars devises

View File

@ -18,6 +18,15 @@
using std::endl;
// OK, this is ugly, but it is the only workaround I found to compile
// with gcc (any version) on a system which uses a non-GNU toolchain.
// The problem is that gcc uses a weak symbol for a particular
// instantiation and that the system linker usually does not
// understand those weak symbols (seen on HP-UX, tru64, AIX and
// others). Thus we force an explicit instanciation of this particular
// template (JMarc)
template class boost::detail::crc_table_t<32, 0x04C11DB7, true>;
// Various implementations of lyx::sum(), depending on what methods
// are available. Order is faster to slowest.
#if defined(HAVE_MMAP) && defined(HAVE_MUNMAP)