[longomatch] libcesarplayer: fix build in windows with mingw
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] libcesarplayer: fix build in windows with mingw
- Date: Fri, 24 Aug 2012 17:09:09 +0000 (UTC)
commit 92c0ffb3d1ea3fd65a2a43a109aff9e25d1c7d2a
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Aug 22 19:02:29 2012 +0200
libcesarplayer: fix build in windows with mingw
configure.ac | 12 ++++++++++++
libcesarplayer/Makefile.am | 4 ++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 124de0e..c7854aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,6 +87,18 @@ AC_SUBST(CESARPLAYER_LIBS)
#SHAVE_INIT([build/m4/shave], [enable])
+AC_MSG_CHECKING([if building for some Win32 platform])
+case "$host" in
+ *-*-mingw*|*-*-cygwin*)
+ platform_win32=yes
+ ;;
+ *)
+ platform_win32=no
+ ;;
+esac
+AC_MSG_RESULT($platform_win32)
+AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
+
dnl package checks, per config
AC_CONFIG_FILES([env], [chmod +x env])
diff --git a/libcesarplayer/Makefile.am b/libcesarplayer/Makefile.am
index 0bc96b0..6c623a1 100644
--- a/libcesarplayer/Makefile.am
+++ b/libcesarplayer/Makefile.am
@@ -42,6 +42,10 @@ libcesarplayer_la_SOURCES = \
libcesarplayer_la_LDFLAGS = \
$(CESARPLAYER_LIBS)
+
+if PLATFORM_WIN32
+libcesarplayer_la_LDFLAGS += -no-undefined
+endif
CLEANFILES = $(BUILT_SOURCES)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]