]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Debian: set BUILD_WITH_INSTALL_RPATH=ON
authorPeter Wu <peter@lekensteyn.nl>
Tue, 21 Jan 2020 03:54:27 +0000 (03:54 +0000)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 21 Jan 2020 04:00:46 +0000 (04:00 +0000)
* Use the install RPATH to avoid relinking at install time.
* This additionally ensures reproducible builds invariant of the build
  directory since build paths such as `X/src:X/contrib/replxx:...` are
  no longer embedded in the binary.
* This assumes that binaries are not ran at build time. If this is
  needed, CMAKE_BUILD_RPATH_USE_ORIGIN=ON can be used instead (requires
  CMake 3.14). For older CMake, try setting LD_LIBRARY_PATH.

debian/rules

index 42f98643bd4053bfd07cae312252b9bfd7d6ca7e..17ebd6eb13bc1191feb9698fd4b7c5bf46a9aa47 100755 (executable)
@@ -31,6 +31,7 @@ override_dh_auto_configure:
                -DINCLUDEDIR=/usr/include \
                -DSYSTEMDDIR=/lib/systemd/system \
                -DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \
+               -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
                -DDEBIAN_BUILD=1 \
                -DENABLE_JEMALLOC=ON \
                -DENABLE_PCRE2=OFF \