From 298d0cbe2d16107777b570c40c0fae3d9fd0f4d1 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 Oct 2010 17:40:23 -0400 Subject: [PATCH] sudo binary depends on the libtool-generated libs --- src/Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index 91c61cc0a..cb4692d11 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -36,8 +36,8 @@ LIBTOOL = @LIBTOOL@ @LT_STATIC@ INSTALL = $(SHELL) $(top_srcdir)/install-sh -c # Libraries -LIBS = @LIBS@ @SUDO_LIBS@ @GETGROUPS_LIB@ @NET_LIBS@ \ - $(top_builddir)/common/libcommon.la $(LIBOBJDIR)libreplace.la +LT_LIBS = $(top_builddir)/common/libcommon.la $(LIBOBJDIR)libreplace.la +LIBS = @LIBS@ @SUDO_LIBS@ @GETGROUPS_LIB@ @NET_LIBS@ $(LT_LIBS) # C preprocessor flags CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(srcdir) -I. @CPPFLAGS@ @@ -94,7 +94,7 @@ all: $(PROGS) .c.lo: $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $< -sudo: $(OBJS) +sudo: $(OBJS) $(LT_LIBS) $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) -static-libtool-libs libsudo_noexec.la: sudo_noexec.lo -- 2.40.0