cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=da7876a9b80f6fb96f642612d115345254a617d9

commit da7876a9b80f6fb96f642612d115345254a617d9
Author: Vincent Torri <[email protected]>
Date:   Mon Sep 11 03:08:36 2017 +0200

    eina: compilation fixed on OpenIndiana
    
    socket library must be passed as connect() is used in eina_db
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 configure.ac | 47 +++++++++++++++++++++++++----------------------
 1 file changed, 25 insertions(+), 22 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9bdf7c364c..2d4e048065 100644
--- a/configure.ac
+++ b/configure.ac
@@ -957,9 +957,32 @@ 
AC_DEFINE_UNQUOTED([EVAS_DICTS_HYPHEN_DIR],["$evas_dicts_hyphen_dir"], [Hunspell
 ### Checks for programs
 
 ### Checks for libraries
+
+# sockets
+
+case "$host_os" in
+   mingw*)
+      have_socket="no"
+      ;;
+   *solaris*)
+      AC_CHECK_LIB([socket], [connect],
+         [
+          have_socket="yes"
+          requirement_socket="-lsocket"
+         ],
+         [have_socket="no"])
+      ;;
+   darwin*)
+      have_socket="yes"
+      ;;
+   *)
+      have_socket="yes"
+      ;;
+esac
+
 EFL_PLATFORM_DEPEND([EINA], [all])
 
-EFL_ADD_LIBS([EINA], [-lm])
+EFL_ADD_LIBS([EINA], [${requirement_socket} -lm])
 
 ## Options
 
@@ -5409,27 +5432,7 @@ esac
 
 ### Checks for linker characteristics
 
-# sockets
-
-case "$host_os" in
-   mingw*)
-      have_socket="no"
-      ;;
-   *solaris*)
-      AC_CHECK_LIB([socket], [connect],
-         [
-          have_socket="yes"
-          requirements_libs_elm="-lsocket ${requirements_libs_elm}"
-         ],
-         [have_socket="no"])
-      ;;
-   darwin*)
-      have_socket="yes"
-      ;;
-   *)
-      have_socket="yes"
-      ;;
-esac
+requirements_libs_elm="${requirement_socket} ${requirements_libs_elm}"
 
 AC_SUBST([requirements_libs_elm])
 

-- 


Reply via email to