From 309ed6442f9fa5f9249534811f49f32536f4a531 Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Thu, 22 Oct 1998 21:06:55 +0000
Subject: [PATCH] Fix ltest/ttest linking.

---
 libraries/libldap/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libraries/libldap/Makefile.in b/libraries/libldap/Makefile.in
index 7e57c6f0cb..d18c4e0a9f 100644
--- a/libraries/libldap/Makefile.in
+++ b/libraries/libldap/Makefile.in
@@ -21,13 +21,13 @@ OBJS	= bind.o open.o result.o error.o compare.o search.o \
 	getdn.o getentry.o getattr.o getvalues.o addentry.o \
 	request.o getdxbyname.o os-ip.o url.o charset.o
 
-LIBS = -L. -L../liblber -lldap -llber $(AC_LIBS)
+LIBS = -L$(LDAP_LIBDIR) -lldap -llber $(AC_LIBS)
 LIBLBER = ../liblber/liblber.a
 
 ltest:	$(LIBRARY) test.o $(LIBLBER)
 	$(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
 ttest:	$(LIBRARY) tmpltest.o $(LIBLBER)
-	$(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
+	$(CC) $(LDFLAGS) -o $@ tmpltest.o $(LIBS)
 
 CFFILES= ldapfilter.conf ldapfriendly ldaptemplates.conf ldapsearchprefs.conf
 
-- 
GitLab