[systemd-devel] [PATCH] build: do not link everything with -lrt (and therefore -pthread)
Shawn Landden
shawnlandden at gmail.com
Sun Jul 21 20:57:35 PDT 2013
---
Makefile.am | 1 +
configure.ac | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 3ece887..f96866c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1832,6 +1832,7 @@ libsystemd_daemon_internal_la_SOURCES = \
$(libsystemd_daemon_la_SOURCES)
libsystemd_daemon_la_CFLAGS = \
+ $(RT_LIBS) \
$(AM_CFLAGS) \
-fvisibility=hidden \
-DSD_EXPORT_SYMBOLS
diff --git a/configure.ac b/configure.ac
index a14b609..5735bd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -194,7 +194,6 @@ AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
# ------------------------------------------------------------------------------
-AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
save_LIBS="$LIBS"
@@ -202,6 +201,9 @@ LIBS=
AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
CAP_LIBS="$LIBS"
+AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
+RT_LIBS="$LIBS"
+AC_SUBST(RT_LIBS)
LIBS="$save_LIBS"
AC_SUBST(CAP_LIBS)
--
1.8.3.2
More information about the systemd-devel
mailing list