[Mono-dev] [RFC 11/12] configure: Fix linking against eglib

Andreas Färber andreas.faerber at web.de
Fri Mar 26 09:30:04 EDT 2010


Apply patch from BNC #389393, adapted for Haiku to cope with lack of libm
and need for libiconv.

This commit is licensed under the MIT X11 license.
---
 configure.in |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 8b0a5c5..52deebc 100644
--- a/configure.in
+++ b/configure.in
@@ -540,11 +540,16 @@ AC_CONFIG_SUBDIRS(eglib)
 case $with_glib in
 embedded) 
   GLIB_CFLAGS='-I$(top_srcdir)/eglib/src -I$(top_builddir)/eglib/src'
-  GLIB_LIBS='-L$(top_builddir)/eglib/src -leglib -lm'
+  GLIB_LIBS='$(top_builddir)/eglib/src/libeglib.la'
   BUILD_GLIB_CFLAGS="$GLIB_CFLAGS"
-  BUILD_GLIB_LIBS="$GLIB_LIBS"
+  BUILD_GLIB_LIBS='-L$(top_builddir)/eglib/src/.libs -leglib -lm'
   GMODULE_CFLAGS="$GLIB_CFLAGS"
   GMODULE_LIBS="$GLIB_LIBS"
+  case "$host" in
+    *-*-haiku*)
+      BUILD_GLIB_LIBS='-L$(top_builddir)/eglib/src/.libs -leglib -liconv'
+      ;;
+  esac
   eglib_dir=eglib
   ;;
 system)
-- 
1.6.5.3



More information about the Mono-devel-list mailing list