From 52c4d6fa0c5f5260de5093967cdd1036e351050c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 29 Sep 2010 17:32:57 +0100 Subject: [PATCH] build: Use platform detection to add -no-undefined Instead of relying on the flavour passed to the configure script. --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0e50ac93e..296704a5d 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,18 @@ CLUTTER_LT_AGE=lt_age CLUTTER_LT_VERSION="$CLUTTER_LT_CURRENT:$CLUTTER_LT_REV:$CLUTTER_LT_AGE" CLUTTER_LT_LDFLAGS="-version-info $CLUTTER_LT_VERSION" +AC_MSG_CHECKING([if building for some Win32 platform]) +case "$host" in + *-*-mingw*|*-*-cygwin*) + CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined" + platform_win32=yes + ;; + *) + platform_win32=no + ;; +esac +AC_MSG_RESULT([$platform_win32]) + AC_SUBST(CLUTTER_LT_VERSION) AC_SUBST(CLUTTER_LT_LDFLAGS) @@ -338,7 +350,6 @@ AS_CASE([$CLUTTER_FLAVOUR], FLAVOUR_LIBS="$FLAVOUR_LIBS -lopengl32 -lgdi32 -lwinmm" FLAVOUR_CFLAGS="$FLAVOUR_CFLAGS -D_WIN32_WINNT=0x0500" - CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined" AC_CHECK_TOOL(WINDRES, windres, no) if test "$WINDRES" = no; then