From: Sebastien Boisvert Date: Thu, 2 Jun 2016 03:02:31 +0000 (-0400) Subject: Port: build shared libraries in Cygwin X-Git-Tag: v0.9.3~17 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e14c9f0d0edff5161fbe2d87b33acb7744950e6c;p=userspace-rcu.git Port: build shared libraries in Cygwin Link: https://lists.lttng.org/pipermail/lttng-dev/2016-May/026081.html Signed-off-by: Sebastien Boisvert Signed-off-by: Mathieu Desnoyers --- diff --git a/Makefile.am b/Makefile.am index 672beec..8e25fd9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,9 @@ AM_LDFLAGS=-version-info $(URCU_LIBRARY_VERSION) if !LIBC_INCLUDES_PTHREAD AM_LDFLAGS+=-lpthread endif +if USE_CYGWIN +AM_LDFLAGS+=-no-undefined +endif AM_CFLAGS=-Wall SUBDIRS = . doc tests diff --git a/configure.ac b/configure.ac index 13f2fd8..9fc7859 100644 --- a/configure.ac +++ b/configure.ac @@ -133,6 +133,11 @@ AS_CASE([$host],[*-*-linux-androideabi], [AM_CONDITIONAL(TARGET_IS_ANDROID, false)] ) +AS_CASE([$host],[*-cygwin*], + [AM_CONDITIONAL(USE_CYGWIN, true)], + [AM_CONDITIONAL(USE_CYGWIN, false)] +) + AC_SUBST(ARCHTYPE) AC_SUBST(SUBARCHTYPE)