diff options
author | Bruno Haible <bruno@clisp.org> | 2009-04-19 22:28:35 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-04-19 22:28:35 +0200 |
commit | ac7526fb13c91cef4fe569ddf7e6ee189fa74180 (patch) | |
tree | ffdb6d2a181bc079f97286f598507de20419f5cb /lib/Makefile.am | |
parent | 9c3f20cc1cae69edbb237cb07dbc9e3a8cf93528 (diff) | |
download | libunistring-ac7526fb13c91cef4fe569ddf7e6ee189fa74180.tar.gz |
Support for building as shared library on Cygwin and mingw.
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r-- | lib/Makefile.am | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 6eaed43..463d272 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -39,7 +39,8 @@ nobase_include_HEADERS = \ unilbrk.h \ uninorm.h \ unicase.h \ - unistring/inline.h + unistring/inline.h \ + unistring/woe32dll.h noinst_HEADERS = \ unistring-notinline.h @@ -169,21 +170,23 @@ MOSTLYCLEANFILES += libunistring.sym-t MAINTAINERCLEANFILES += libunistring.sym EXTRA_DIST += libunistring.sym +# Tell the mingw or Cygwin linker which symbols to export. +if WOE32DLL +libunistring_la_SOURCES += ../woe32dll/unistring-exports.c +libunistring_la_LDFLAGS += -Wl,--export-all-symbols +endif + # Hide undesired symbols that are defined by libunistring_la_SOURCES or # libunistring_la_LIBADD from the global namespace, by prefixing them with # "libunistring_". all check install: config.h config.h: $(BUILT_SOURCES) libunistring.sym { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - : "Avoid double inclusion, to avoid a warning about redefinition of DLL_VARIABLE."; \ + : "Avoid double inclusion, to avoid a warning about redefinitions."; \ echo '#ifndef UNISTRING_CONFIG_H'; \ echo '#define UNISTRING_CONFIG_H'; \ echo; \ echo '#include "../config.h"'; \ - : "All code is collected in a single library,"; \ - : "No references to variables in other libraries exist."; \ - echo '#undef DLL_VARIABLE'; \ - echo '#define DLL_VARIABLE'; \ echo; \ echo '#endif /* UNISTRING_CONFIG_H */'; \ } > config.h && \ |