Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -68,11 +68,7 @@ install: $(ILIBS) $(IPROGS) $(IHDRS)
 	mkdir -p $(DESTDIR)$(mandir)/man1
 	for f in $(IPROGS); do cp $$f $(DESTDIR)$(bindir); done
 	for f in $(ILIBS); do cp $$f $(DESTDIR)$(libdir); done
-	for f in $(ILIBS2); do cp $$f $(DESTDIR)$(libdir); \
-		i=`basename -s .$(ABIVER) $$f`; rm -f $(DESTDIR)$(libdir)/$$i; \
-		ln -s $$f $(DESTDIR)$(libdir)/$$i; \
-		i=`basename -s .$(LIBVER) $$i`; rm -f $(DESTDIR)$(libdir)/$$i; \
-		ln -s $$f $(DESTDIR)$(libdir)/$$i; done
+	for f in $(ILIBS2); do cp $$f $(DESTDIR)$(libdir); done
 	for f in $(IHDRS); do cp $$f $(DESTDIR)$(includedir); done
 	for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done
 
@@ -154,8 +150,8 @@ lmdb.pc: Makefile mdb_stat
 	@echo "URL: https://www.openldap.org" >>$@
 	@LMDB_VERSION=`./mdb_stat -V | sed -e 's/LMDB //' -e 's/:.*//'`; \
 	echo "Version: $$LMDB_VERSION" >>$@
-	@echo "Cflags: $(THREADS) $(XCFLAGS)" >>$@
-	@echo "Libs: -llmdb $(LDL) $(THREADS)" >>$@
+	@echo "Cflags: -I$(includedir) $(THREADS) $(XCFLAGS)" >>$@
+	@echo "Libs: -L$(libdir) -llmdb $(LDL) $(THREADS)" >>$@
 
 COV_FLAGS=-fprofile-arcs -ftest-coverage
 COV_OBJS=xmdb.o xmidl.o
