Fix compilation on OpenBSD (bug #250). Patch by eumel.
authorcaro <caro>
Sun, 22 Mar 2009 13:40:28 +0000 (13:40 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 22 Mar 2009 13:40:28 +0000 (13:40 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@39627 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index bee6439..10a3234 100644 (file)
@@ -281,7 +281,7 @@ if test "x$enable_coverage" = "xyes" ; then
 fi
 
 if ! test "${VMIC}" = "x" ; then
-   EINA_CFLAGS="${EINA_CFLAGS} -Wall -W -Wextra" # -Werror
+   EINA_CFLAGS="${EINA_CFLAGS} -Wall -W" # -Werror
 fi
 
 GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
@@ -302,6 +302,9 @@ case "${host_os}" in
       EINA_LIBS="${EINA_LIBS} -ldl ${EVIL_LIBS} -lm"
       lt_enable_auto_import="-Wl,--enable-auto-import"
    ;;
+   *openbsd*)
+      EINA_LIBS="${EINA_LIBS} -lm"
+   ;;
    *bsd*)
       EINA_LIBS="${EINA_LIBS} -lrt -lm"
    ;;