checksum: Set rpath including DESTDIR for checksum_builder
authorTobias Brunner <tobias@strongswan.org>
Wed, 8 Jan 2014 10:24:24 +0000 (11:24 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Jan 2014 10:24:24 +0000 (11:24 +0100)
This way libraries to which checksum_builder does not itself link,
like libtls and libradius, are found during DESTDIR installs.

Fixes #476.

src/checksum/Makefile.am

index 2e1a1fb..7a1e18b 100644 (file)
@@ -11,6 +11,7 @@ checksum_builder_LDADD = \
        $(top_builddir)/src/libhydra/libhydra.la \
        $(top_builddir)/src/libcharon/libcharon.la \
        $(DLLIB)
+checksum_builder_LDFLAGS = -rpath '$(DESTDIR)$(ipseclibdir)'
 
 CLEANFILES = checksum.c $(EXTRA_PROGRAMS)