]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxsum.C
another safety belt
[lyx.git] / src / support / lyxsum.C
index 55763b28f3119dda259017d458e79592432bdda1..f7e89fa200544eaa16c086a91650be70487c082e 100644 (file)
 
 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)