From: Lars Op den Kamp Date: Wed, 29 Feb 2012 16:08:20 +0000 (+0100) Subject: fix OS-X compilation X-Git-Tag: upstream/2.2.0~1^2~32^2~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=894e5debd4d4886d78094455c36bb2074536a95b;p=deb_libcec.git fix OS-X compilation --- diff --git a/configure.ac b/configure.ac index b7a4b60..23b1a4e 100644 --- a/configure.ac +++ b/configure.ac @@ -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"; diff --git a/src/cec-config/Makefile.am b/src/cec-config/Makefile.am index d7e869b..a6c6c39 100644 --- a/src/cec-config/Makefile.am +++ b/src/cec-config/Makefile.am @@ -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 diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index f6ab05e..083775f 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -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 diff --git a/src/testclient/Makefile.am b/src/testclient/Makefile.am index 8c7862e..726cf62 100644 --- a/src/testclient/Makefile.am +++ b/src/testclient/Makefile.am @@ -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