fix OS-X compilation
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 29 Feb 2012 16:08:20 +0000 (17:08 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 29 Feb 2012 16:08:20 +0000 (17:08 +0100)
configure.ac
src/cec-config/Makefile.am
src/lib/Makefile.am
src/testclient/Makefile.am

index b7a4b6006d6ecc809c882e9caf27135eb9ca349c..23b1a4e40693ce0f2e76645e748199859a9f7b60 100644 (file)
@@ -8,6 +8,7 @@ has_libudev="yes"
 case "${host}" in
   *-*-linux*)
     PKG_CHECK_MODULES([UDEV],[libudev],,[has_libudev="no";AC_MSG_WARN("library 'udev' is missing - adapter detection will not be available")])
+    LIBS+=" -lrt"
     ;;
   *-apple-darwin*)
     has_libudev="no";
index d7e869b948ed806a519c79e6cff14ce1ea704648..a6c6c393d13af441e0b61369e86f1c9af59edb9d 100644 (file)
@@ -2,4 +2,4 @@ bin_PROGRAMS = cec-config
 cec_config_SOURCES = cec-config.cpp
 
 cec_config_CPPFLAGS = -I@abs_top_srcdir@/include
-cec_config_LDFLAGS = @LIBS_DL@ -lrt
\ No newline at end of file
+cec_config_LDFLAGS = @LIBS_DL@
\ No newline at end of file
index f6ab05e07a7ff23b0c5bc2f3bfb0f64a6a5db9be..083775f6fbc63578cf9c07d3a140834e332c51f3 100644 (file)
@@ -26,5 +26,5 @@ libcec_la_SOURCES = CECProcessor.cpp \
                                        implementations/RLCommandHandler.cpp \
                     platform/posix/serialport.cpp
 
-libcec_la_LDFLAGS = @LIBS@ -version-info @VERSION@ -lrt
+libcec_la_LDFLAGS = @LIBS@ -version-info @VERSION@
 libcec_la_CPPFLAGS = -I@abs_top_srcdir@/include
index 8c7862e57da721c19f3e541764484fa4cbb93e5e..726cf621d352212e7b03306d8d975f1f263387bb 100644 (file)
@@ -2,4 +2,4 @@ bin_PROGRAMS = cec-client
 cec_client_SOURCES = main.cpp
 
 cec_client_CPPFLAGS = -I@abs_top_srcdir@/include
-cec_client_LDFLAGS = @LIBS_DL@ -lrt
\ No newline at end of file
+cec_client_LDFLAGS = @LIBS_DL@
\ No newline at end of file