mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
build: do not link everything with -lrt (and therefore -pthread)
This commit is contained in:
parent
ce8aba5681
commit
fba1ea06bb
@ -1835,6 +1835,9 @@ libsystemd_daemon_la_LDFLAGS = \
|
||||
-version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
|
||||
-Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
|
||||
|
||||
libsystemd_daemon_la_LIBADD = \
|
||||
$(RT_LIBS)
|
||||
|
||||
pkginclude_HEADERS += \
|
||||
src/systemd/sd-daemon.h
|
||||
|
||||
|
@ -190,7 +190,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"
|
||||
@ -198,6 +197,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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user