mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Use UDEV_LIBS, and link -ludev only when needed.
This commit is contained in:
parent
76f4498303
commit
f2a6d937a6
@ -1,5 +1,6 @@
|
||||
Version 2.02.62 -
|
||||
====================================
|
||||
Define and use internal makefile variable UDEV_LIBS.
|
||||
Define and use internal makefile variable DL_LIBS.
|
||||
Update check for selinux libraries and link them only when needed.
|
||||
Define and use internal makefile variable SELINUX_LIBS and STATIC_LIBS.
|
||||
|
5
configure
vendored
5
configure
vendored
@ -648,6 +648,7 @@ kerneldir
|
||||
interface
|
||||
UDEV_SYNC
|
||||
UDEV_RULES
|
||||
UDEV_LIBS
|
||||
STATIC_LINK
|
||||
STATICDIR
|
||||
SNAPSHOTS
|
||||
@ -12307,8 +12308,9 @@ cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
|
||||
_ACEOF
|
||||
|
||||
LIBS="-ludev $LIBS"
|
||||
UDEV_LIBS="-ludev"
|
||||
else
|
||||
UDEV_LIBS=
|
||||
{ $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5
|
||||
$as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;}
|
||||
fi
|
||||
@ -15559,6 +15561,7 @@ LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
|
@ -668,8 +668,9 @@ if test x$UDEV_SYNC = xyes; then
|
||||
if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
|
||||
AC_DEFINE([HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE], 1,
|
||||
[Define to 1 if libudev's udev_queue_get_udev_is_active function is available.])
|
||||
LIBS="-ludev $LIBS"
|
||||
UDEV_LIBS="-ludev"
|
||||
else
|
||||
UDEV_LIBS=
|
||||
AC_MSG_WARN(It won't be possible to get udev state. We will assume that udev is not running.)
|
||||
fi
|
||||
fi
|
||||
@ -1120,6 +1121,7 @@ AC_SUBST(SELINUX_LIBS)
|
||||
AC_SUBST(SNAPSHOTS)
|
||||
AC_SUBST(STATICDIR)
|
||||
AC_SUBST(STATIC_LINK)
|
||||
AC_SUBST(UDEV_LIBS)
|
||||
AC_SUBST(UDEV_RULES)
|
||||
AC_SUBST(UDEV_SYNC)
|
||||
AC_SUBST(interface)
|
||||
|
@ -52,7 +52,7 @@ include $(top_builddir)/make.tmpl
|
||||
DEFS += -DDM_DEVICE_UID=@DM_DEVICE_UID@ -DDM_DEVICE_GID=@DM_DEVICE_GID@ \
|
||||
-DDM_DEVICE_MODE=@DM_DEVICE_MODE@
|
||||
|
||||
LIBS += $(SELINUX_LIBS)
|
||||
LIBS += $(SELINUX_LIBS) $(UDEV_LIBS)
|
||||
|
||||
device-mapper: all
|
||||
|
||||
|
@ -31,7 +31,7 @@ CFLOW_CMD = @CFLOW_CMD@
|
||||
|
||||
LIBS = @LIBS@
|
||||
# Extra libraries always linked with static binaries
|
||||
STATIC_LIBS = $(SELINUX_LIBS)
|
||||
STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS)
|
||||
DEFS += @DEFS@
|
||||
CFLAGS += @CFLAGS@
|
||||
CLDFLAGS += @CLDFLAGS@
|
||||
@ -43,6 +43,7 @@ DL_LIBS = @DL_LIBS@
|
||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SELINUX_LIBS = @SELINUX_LIBS@
|
||||
UDEV_LIBS = @UDEV_LIBS@
|
||||
|
||||
# Setup directory variables
|
||||
prefix = @prefix@
|
||||
|
@ -107,6 +107,8 @@ DEFS += -DLVM_SHARED_PATH=\"$(exec_prefix)/sbin/lvm\"
|
||||
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
LIBS += $(UDEV_LIBS)
|
||||
|
||||
device-mapper: $(TARGETS_DM)
|
||||
|
||||
dmsetup: dmsetup.o $(top_builddir)/libdm/libdevmapper.$(LIB_SUFFIX)
|
||||
|
Loading…
Reference in New Issue
Block a user