diff mbox

[userspace-rcu,2/2] Port: build shared libraries in Cygwin

Message ID 574FA1C7.8040803@gydle.com
State Accepted, archived
Headers show

Commit Message

Sebastien Boisvert June 2, 2016, 3:02 a.m. UTC
Link: https://lists.lttng.org/pipermail/lttng-dev/2016-May/026081.html
Signed-off-by: Sebastien Boisvert <sboisvert at gydle.com>
---
 Makefile.am  | 3 +++
 configure.ac | 5 +++++
 2 files changed, 8 insertions(+)
diff mbox

Patch

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 fe1c55d..b3096c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -134,6 +134,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)