]> granicus.if.org Git - sudo/commitdiff
Do not try to install plugins when shared modules are disabled
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Aug 2013 16:51:46 +0000 (10:51 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Aug 2013 16:51:46 +0000 (10:51 -0600)
(sudoers already had the check).

plugins/group_file/Makefile.in
plugins/sample/Makefile.in
plugins/system_group/Makefile.in

index edede21ad5a193fc73f3ba078a3f48c2ca05a667..d407e408af332428b989de98bf09eb4ce4204ff1 100644 (file)
@@ -119,7 +119,9 @@ install-includes:
 install-doc:
 
 install-plugin: install-dirs group_file.la
-       $(INSTALL) -b~ -m $(shlib_mode) .libs/group_file$(soext) $(DESTDIR)$(plugindir)/group_file.so
+       if [ X"$(soext)" != X"" ]; then \
+           $(INSTALL) -b~ -m $(shlib_mode) .libs/group_file$(soext) $(DESTDIR)$(plugindir)/group_file.so; \
+       fi
 
 uninstall:
        -rm -f $(DESTDIR)$(plugindir)/group_file.so
index 8adb46df64aaabac091217b629e34ce772f436e8..f10076d6e80f682781cabd6ebdbe2e6ce0dd0b51 100644 (file)
@@ -118,7 +118,9 @@ install-includes:
 install-doc:
 
 install-plugin: install-dirs sample_plugin.la
-       $(INSTALL) -b~ -m $(shlib_mode) .libs/sample_plugin$(soext) $(DESTDIR)$(plugindir)/sample_plugin.so
+       if [ X"$(soext)" != X"" ]; then \
+           $(INSTALL) -b~ -m $(shlib_mode) .libs/sample_plugin$(soext) $(DESTDIR)$(plugindir)/sample_plugin.so; \
+       fi
 
 uninstall:
        -rm -f $(DESTDIR)$(plugindir)/sample_plugin.so
index 7558b9c28d8e1bf11ab49044a1ccd55a41075cdf..3ad53261e2c3712176787ceaeba15bec8b57de3b 100644 (file)
@@ -119,7 +119,9 @@ install-includes:
 install-doc:
 
 install-plugin: install-dirs system_group.la
-       $(INSTALL) -b~ -m $(shlib_mode) .libs/system_group$(soext) $(DESTDIR)$(plugindir)/system_group.so
+       if [ X"$(soext)" != X"" ]; then \
+           $(INSTALL) -b~ -m $(shlib_mode) .libs/system_group$(soext) $(DESTDIR)$(plugindir)/system_group.so; \
+       fi
 
 uninstall:
        -rm -f $(DESTDIR)$(plugindir)/system_group.so