From b7c647a4fe6c01c2d83b5bdcfe75acc18d286454 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 9 Dec 2013 14:00:55 -0700 Subject: [PATCH] check_symbols needs to link with SUDO_LIBS in order to get -lpthread on HP-UX for libldap (which uses threads). It would be better to have a separate variable for the pthread library but this is no worse than it used to be. --- plugins/sudoers/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sudoers/Makefile.in b/plugins/sudoers/Makefile.in index 6260e3f37..e3bf77885 100644 --- a/plugins/sudoers/Makefile.in +++ b/plugins/sudoers/Makefile.in @@ -219,9 +219,10 @@ check_fill: $(CHECK_FILL_OBJS) $(LT_LIBS) check_iolog_path: $(CHECK_IOLOG_PATH_OBJS) $(LT_LIBS) $(LIBTOOL) --mode=link $(CC) -o $@ $(CHECK_IOLOG_PATH_OBJS) $(LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(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"$(soext)" != X"" ]; then \ - $(LIBTOOL) --mode=link $(CC) -o $@ $(CHECK_SYMBOLS_OBJS) $(LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(LIBS) @LIBDL@; \ + $(LIBTOOL) --mode=link $(CC) -o $@ $(CHECK_SYMBOLS_OBJS) $(LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(LIBS) @SUDO_LIBS@ @LIBDL@; \ fi check_wrap: $(CHECK_WRAP_OBJS) $(LT_LIBS) -- 2.40.0