:: commit d01483d406a88feeca7ddf2131545e1767124d1c

Kamila Szewczyk <27734421+kspalaiologos@users.noreply.github.com> — 2022-10-29 21:02

parents: 9b5a0acd3e

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
tab: 248 wrap: offon