stefan pushed a commit to branch master.

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

commit ecceca8566cd5a93cd964bfc0ff8d8859e74c0f0
Author: Stefan Schmidt <[email protected]>
Date:   Fri Feb 13 10:03:05 2015 +0100

    ecore/drm: Compile ecore_drm_logind.c without condition
    
    Right now we excluded the file from the build if we did not find 
system-logind.
    We are using some symbols from this file without any condition though:
    lib/ecore_drm/.libs/libecore_drm.so: undefined reference to 
`_ecore_drm_logind_device_open_no_pending'
    lib/ecore_drm/.libs/libecore_drm.so: undefined reference to 
`_ecore_drm_logind_connect'
    lib/ecore_drm/.libs/libecore_drm.so: undefined reference to 
`_ecore_drm_logind_disconnect'
    lib/ecore_drm/.libs/libecore_drm.so: undefined reference to 
`_ecore_drm_logind_device_close'
    
    This comes from a Gentoo machine without systemd.
    
    As the logind relevant parts are ifdef'ed in the code itself it is safe to 
build
    this file in all cases and thus avoid the undefined references.
    
    @fix
---
 src/Makefile_Ecore_Drm.am | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/Makefile_Ecore_Drm.am b/src/Makefile_Ecore_Drm.am
index 61a1555..e331e7a 100644
--- a/src/Makefile_Ecore_Drm.am
+++ b/src/Makefile_Ecore_Drm.am
@@ -18,13 +18,10 @@ lib/ecore_drm/ecore_drm_tty.c \
 lib/ecore_drm/ecore_drm_device.c \
 lib/ecore_drm/ecore_drm_launcher.c \
 lib/ecore_drm/ecore_drm_dbus.c \
+lib/ecore_drm/ecore_drm_logind.c \
 lib/ecore_drm/ecore_drm.c \
 lib/ecore_drm/ecore_drm_private.h
 
-if HAVE_SYSTEMD_LOGIN
-lib_ecore_drm_libecore_drm_la_SOURCES += \
-lib/ecore_drm/ecore_drm_logind.c
-endif
 
 lib_ecore_drm_libecore_drm_la_CPPFLAGS = \
   -I$(top_builddir)/src/lib/efl \

-- 


Reply via email to