Set rpath in the Makefile (#69)
* set rpath in the makefile * Remove the $(DESTDIR) part Co-authored-by: Caleb Maclennan <caleb@alerque.com> Co-authored-by: Caleb Maclennan <caleb@alerque.com>
diff --git a/Makefile.am b/Makefile.am
index 506ae8f..2688afc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,6 +22,7 @@ if ENABLE_STATIC
bzip3_SOURCES += $(libbzip3_la_SOURCES)
else
bzip3_LDADD = libbzip3.la
+bzip3_LDFLAGS = -Wl,-rpath -Wl,$(libdir)
endif
dist_man_MANS = bzip3.1 bz3cat.1 bz3more.1 bz3less.1 bz3grep.1 bunzip3.1
