gnomemm r1613 - in goocanvasmm/trunk: . build_shared
- From: arminb svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1613 - in goocanvasmm/trunk: . build_shared
- Date: Sun, 20 Jul 2008 17:26:08 +0000 (UTC)
Author: arminb
Date: Sun Jul 20 17:26:08 2008
New Revision: 1613
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1613&view=rev
Log:
2007-07-20 Armin Burgmeier <armin openismus com>
* configure.in: Added detection of Win32 platform, and added the
AC_LIBTOOL_WIN32_DLL macro to produce a DLL on Windows.
* build_shared/Makefile_build.am_fragment: Add -no-undefined to the
ldflags on Windows because DLLs are not allowed to contain undefined
references.
Modified:
goocanvasmm/trunk/ChangeLog
goocanvasmm/trunk/build_shared/Makefile_build.am_fragment
goocanvasmm/trunk/configure.in
Modified: goocanvasmm/trunk/build_shared/Makefile_build.am_fragment
==============================================================================
--- goocanvasmm/trunk/build_shared/Makefile_build.am_fragment (original)
+++ goocanvasmm/trunk/build_shared/Makefile_build.am_fragment Sun Jul 20 17:26:08 2008
@@ -21,7 +21,14 @@
files_all_cc = $(files_built_cc) $(files_extra_cc)
-common_ldflags = -version-info $(sublib_libversion)
+# Support for DLL on mingw using libtool > 1.4
+if PLATFORM_WIN32
+no_undefined = -no-undefined -Wl,--export-all-symbols
+else
+no_undefined =
+endif
+
+common_ldflags = -version-info $(sublib_libversion) $(no_undefined)
all_includes = -I$(top_builddir)/$(sublib_topdir) -I$(top_srcdir)/$(sublib_topdir) \
$(sublib_cflags)
Modified: goocanvasmm/trunk/configure.in
==============================================================================
--- goocanvasmm/trunk/configure.in (original)
+++ goocanvasmm/trunk/configure.in Sun Jul 20 17:26:08 2008
@@ -64,7 +64,35 @@
AC_PROG_CPP
AC_PROG_MAKE_SET
AC_CANONICAL_HOST
-AM_DISABLE_STATIC
+
+dnl Used for enabling the "-no-undefined" flag while generating DLLs
+dnl Copied from the official gtk+-2 configure.in
+AC_MSG_CHECKING([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 "$platform_win32" = "yes")
+
+AC_MSG_CHECKING([for native Win32])
+case "$host" in
+ *-*-mingw*)
+ os_win32=yes
+ ;;
+ *)
+ os_win32=no
+ ;;
+esac
+AC_MSG_RESULT([$os_win32])
+AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
+
+AC_DISABLE_STATIC
+AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AL_PROG_GNU_M4(AC_MSG_ERROR([dnl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]