]> granicus.if.org Git - sudo/commitdiff
Avoid running check_symbols for static sudoers
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 12 Jul 2014 15:16:36 +0000 (09:16 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 12 Jul 2014 15:16:36 +0000 (09:16 -0600)
plugins/sudoers/Makefile.in

index c73c862ab19210ef8a1766e0eb5d8ec6054b0fcc..9325f6ee36f50008e616acfc41a8e1b5ca08e46a 100644 (file)
@@ -227,7 +227,7 @@ check_iolog_path: $(CHECK_IOLOG_PATH_OBJS) $(LT_LIBS)
 
 # We need to link check_symbols with -lpthread on HP-UX since LDAP uses threads
 check_symbols: $(CHECK_SYMBOLS_OBJS) $(LT_LIBS)
-       if [ X"$(shlib_enable)" = X"yes" ]; then \
+       if [ X"$(shlib_enable)" = X"yes" -a X"@LT_STATIC@" != X"" ]; then \
            $(LIBTOOL) --mode=link $(CC) -o $@ $(CHECK_SYMBOLS_OBJS) $(LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(LIBS) @SUDO_LIBS@ -no-fast-install; \
        fi
 
@@ -338,7 +338,7 @@ check: $(TEST_PROGS) visudo testsudoers
            diff regress/parser/check_digest.out $(srcdir)/regress/parser/check_digest.out.ok || rval=`expr $$rval + $$?`; \
            ./check_fill || rval=`expr $$rval + $$?`; \
            ./check_iolog_path $(srcdir)/regress/iolog_path/data || rval=`expr $$rval + $$?`; \
-           if [ X"$(shlib_enable)" = X"yes" ]; then \
+           if [ X"$(shlib_enable)" = X"yes" -a X"@LT_STATIC@" != X"" ]; then \
                ./check_symbols .libs/sudoers.so $(shlib_exp) || rval=`expr $$rval + $$?`; \
            fi; \
            mkdir -p regress/logging; \