diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2017-10-27 14:01:35 -0700 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2017-10-27 16:01:35 -0500 |
commit | 36bf9f8bcb2a1a3aea1f90eb4d13aed3bbf6da8f (patch) | |
tree | 35ba59e8ec1d505f00a5fc7c6c2c119e48abc0d4 /src/bindings/compat/java/Makefile.am | |
parent | 0891ff3d00975ee9697855dcb2b6cbb232ec5523 (diff) |
Modify LDFLAGS to support shared libraries for Win (#1280)
* Use uintptr_t for pointer casts in Swig files
CVC4's Swig interface files were casting pointers to longs in multiple
instances. The problem with that is that on certain platforms *cough*
Windows/MinGW *cough* long is only 32-bit even when compiling a 64-bit
executable (they use the LLP64 data model). This made the compilation of
language bindings fail with MinGW. This commit changes the types to
uintptr_t defined in Swig's stdint.i.
* Modify LDFLAGS to support shared libraries for Win
This commit adds "-no-undefined" to the LDFLAGS of CVC4's library, which
is required for building DLLs (shared libraries on Windows). It also
adds "--export-all-symbols" to the linker flags of the parser to ensure
that there are no unresolved symbols when linking against it (see
comment in the Makefile.am for details).
* Fix for non-Windows builds
* add no-undefined to libcvc4compatjni
Diffstat (limited to 'src/bindings/compat/java/Makefile.am')
-rw-r--r-- | src/bindings/compat/java/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bindings/compat/java/Makefile.am b/src/bindings/compat/java/Makefile.am index 5b052568d..eae498368 100644 --- a/src/bindings/compat/java/Makefile.am +++ b/src/bindings/compat/java/Makefile.am @@ -29,6 +29,7 @@ if CVC4_LANGUAGE_BINDING_JAVA javalib_LTLIBRARIES += libcvc4compatjni.la javadata_DATA += CVC4compat.jar libcvc4compatjni_la_LDFLAGS = \ + -no-undefined \ -module \ -shrext $(CVC4_JAVA_MODULE_EXT) \ -version-info $(LIBCVC4BINDINGS_VERSION) |