Merge pull request #5 from embray/build/cygwin

Fix building as a shared library on Cygwin
This commit is contained in:
Miguel Marco 2020-02-16 20:34:49 +01:00 committed by GitHub
commit a4070a897a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

6
.gitignore vendored
View File

@ -13,6 +13,9 @@ lib/Makefile.in
lib/*.lo
lib/*.o
lib/*.la
*.dll*
*.dylib
*.exe
*.tar.gz
libtool
m4/
@ -24,3 +27,6 @@ tests/*.trs
tests/*_test
tests/Makefile
tests/Makefile.in
# editor temp files
*.sw[nop]

View File

@ -4,6 +4,9 @@ AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign -Wall])
AM_PROG_AR
AC_PROG_CXX
LT_INIT
LT_INIT([shared win32-dll])
AC_CANONICAL_HOST
AS_CASE([$host_os], [*cygwin* | *mingw*], [SIROCCO_LDFLAGS=-no-undefined])
AC_SUBST(SIROCCO_LDFLAGS)
AC_CONFIG_FILES([Makefile lib/Makefile tests/Makefile])
AC_OUTPUT

View File

@ -1,5 +1,5 @@
lib_LTLIBRARIES = libsirocco.la
libsirocco_la_SOURCES = icomplex.cpp interval.cpp $(top_srcdir)/include/list.hpp $(top_srcdir)/include/mp_complex.hpp $(top_srcdir)/include/mp_icomplex.hpp $(top_srcdir)/include/mp_interval.hpp $(top_srcdir)/include/polynomial.hpp $(top_srcdir)/include/sirocco.hpp $(top_srcdir)/include/icomplex.hpp $(top_srcdir)/include/interval.hpp mp_complex.cpp mp_icomplex.cpp mp_interval.cpp polynomial.cpp sirocco.cpp
libsirocco_la_LDFLAGS = -lm -lmpfr -lgmp
libsirocco_la_LDFLAGS = $(SIROCCO_LDFLAGS) -lm -lmpfr -lgmp
AM_CPPFLAGS = -I$(top_srcdir)/include
include_HEADERS = $(top_srcdir)/include/sirocco.h