From: Todd C. Miller Date: Thu, 23 Oct 2014 19:08:21 +0000 (-0600) Subject: Link with -ldl if needed when built with --disable-shared-libutil/ X-Git-Tag: SUDO_1_8_12^2~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2eb6dcc06c053f390924ef6185f6328ac03d165;p=sudo Link with -ldl if needed when built with --disable-shared-libutil/ --- diff --git a/lib/util/Makefile.in b/lib/util/Makefile.in index 865a4e0f5..c30172ac3 100644 --- a/lib/util/Makefile.in +++ b/lib/util/Makefile.in @@ -136,7 +136,7 @@ $(shlib_opt): $(shlib_exp) libsudo_util.la: $(LTOBJS) @LT_LDDEP@ case "$(LT_LDFLAGS)" in \ *-no-install*) \ - $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(LT_LDFLAGS) $(LTOBJS);; \ + $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(LT_LDFLAGS) $(LTOBJS) @LIBDL@;; \ *) \ $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(LT_LDFLAGS) $(LTOBJS) -version-info $(SHLIB_VERSION) -rpath $(libexecdir)/sudo @LT_DEP_LIBS@ @LIBDL@;; \ esac