chiark / gitweb /
ldconfig: add configure option to disable
authorUmut Tezduyar Lindskog <umut.tezduyar@axis.com>
Tue, 5 Aug 2014 10:17:09 +0000 (12:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Aug 2014 23:01:43 +0000 (01:01 +0200)
Makefile.am
configure.ac
units/ldconfig.service

index fa6fd7d541422b13e2bcba148c491fd2f0883ad4..513c8526551b649746f722fca54be62cb23b917d 100644 (file)
@@ -490,8 +490,7 @@ dist_systemunit_DATA = \
        units/systemd-udevd-control.socket \
        units/systemd-udevd-kernel.socket \
        units/system-update.target \
-       units/initrd-switch-root.target \
-       units/ldconfig.service
+       units/initrd-switch-root.target
 
 nodist_systemunit_DATA = \
        units/getty@.service \
@@ -919,6 +918,16 @@ libsystemd_label_la_CFLAGS = \
 libsystemd_label_la_LIBADD = \
        $(SELINUX_LIBS)
 
+# -----------------------------------------------------------------------------
+
+if ENABLE_LDCONFIG
+dist_systemunit_DATA += \
+       units/ldconfig.service
+
+SYSINIT_TARGET_WANTS += \
+       ldconfig.service
+endif
+
 # ------------------------------------------------------------------------------
 
 if HAVE_SECCOMP
@@ -5789,8 +5798,7 @@ endif
 
 SYSINIT_TARGET_WANTS += \
        systemd-update-utmp.service \
-       systemd-update-done.service \
-       ldconfig.service
+       systemd-update-done.service
 
 LOCAL_FS_TARGET_WANTS += \
        systemd-remount-fs.service \
index 6d5536b59922dbe979ac5ec648356fefd3734698..d95a34894b5de83639aacc55f9c8fb2176502044 100644 (file)
@@ -1182,7 +1182,12 @@ AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
 AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
 
 # ------------------------------------------------------------------------------
+AC_ARG_ENABLE(ldconfig,
+       [AC_HELP_STRING([--disable-ldconfig], [disable ldconfig])],
+       enable_ldconfig=$enableval, enable_ldconfig=yes)
+AM_CONDITIONAL(ENABLE_LDCONFIG, [test x$enable_ldconfig = xyes])
 
+# ------------------------------------------------------------------------------
 # Location of the init scripts as mandated by LSB
 SYSTEM_SYSVINIT_PATH=/etc/init.d
 SYSTEM_SYSVRCND_PATH=/etc/rc.d
index 09a2b7458f062f540d3315749261af0d05de0027..43c145b7266e7d330956fb5a8445f3d3ec16b336 100644 (file)
@@ -13,7 +13,6 @@ Conflicts=shutdown.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
 Before=sysinit.target shutdown.target systemd-update-done.service
 ConditionNeedsUpdate=/etc
-ConditionFileIsExecutable=/sbin/ldconfig
 
 [Service]
 Type=oneshot