diff options
author | Bruno Haible <bruno@clisp.org> | 2009-04-20 04:29:07 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-04-20 04:29:07 +0200 |
commit | 59073126ad7443e82330d38c8c59719f4826c299 (patch) | |
tree | 7c53d6d5d30d6aa72ef87cfc51cdffa0f977b0fd | |
parent | 6c192cf93729294f72f158653f97feabbaaaac3b (diff) | |
download | libunistring-59073126ad7443e82330d38c8c59719f4826c299.tar.gz |
Support for building a shared library on Windows platforms.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.ac | 9 |
2 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2008-04-19 Bruno Haible <bruno@clisp.org> + Avoid compilation errors in tests/uninorm/test-nf*.c. + * configure.ac (WOE32DLL): Define also as a C macro. + +2008-04-19 Bruno Haible <bruno@clisp.org> + Avoid a compilation error of tests/unictype/test-categ_none.c. * gnulib-local/modules/unictype/category-none-tests.diff: New file. * gnulib-local/Makefile.am (EXTRA_DIST): Add it. diff --git a/configure.ac b/configure.ac index bcea482..67783d9 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,15 @@ else DLL_VARIABLE= fi AC_SUBST([DLL_VARIABLE]) +dnl Some parts of the tests have to be skipped when the tests are linked with +dnl the shared library. This is because in this situation, the address of a +dnl global variable in the shared library cannot be used as initializer of a +dnl global or static variable. +dnl gcc would say: "error: initializer element is not constant". +if test $is_woe32dll = yes; then + AC_DEFINE([WOE32DLL], [1], + [Define when --enable-shared is used on mingw or Cygwin.]) +fi dnl Check for prerequisites of exported.sh. gt_GLOBAL_SYMBOL_PIPE |