[Mono-dev] [RFC 10/12] eglib: Workaround hardcoded library dependencies for Haiku

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


Haiku neither has libm nor libdl.

A proper fix would probably be autoconf checks for those libraries.

This commit is licensed under the MIT X11 license.
---
 eglib/src/Makefile.am  |    2 +-
 eglib/test/Makefile.am |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/eglib/src/Makefile.am b/eglib/src/Makefile.am
index 337c988..1597691 100644
--- a/eglib/src/Makefile.am
+++ b/eglib/src/Makefile.am
@@ -52,7 +52,7 @@ INCLUDES = -I$(srcdir)
 if HOST_WIN32
 libeglib_la_LIBADD = -lm -liconv -lpsapi
 else
-libeglib_la_LIBADD = -lm -ldl
+#libeglib_la_LIBADD = -lm -ldl
 endif
 
 libeglib_static_la_LIBADD = $(libeglib_la_LIBADD)
diff --git a/eglib/test/Makefile.am b/eglib/test/Makefile.am
index 4f825b3..3411ef9 100644
--- a/eglib/test/Makefile.am
+++ b/eglib/test/Makefile.am
@@ -30,7 +30,7 @@ SOURCES = \
 test_eglib_SOURCES = $(SOURCES)
 
 test_eglib_CFLAGS = -Wall -Werror -D_FORTIFY_SOURCE=2 -I$(srcdir)/../src -I../src -DDRIVER_NAME=\"EGlib\"
-test_eglib_LDADD = ../src/libeglib.la -ldl
+test_eglib_LDADD = ../src/libeglib.la
 
 run-eglib: all
 	./test-eglib
-- 
1.6.5.3



More information about the Mono-devel-list mailing list