summaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2020-01-21 02:21:31 +0000
committerPeter Wu <peter@lekensteyn.nl>2020-01-21 02:21:31 +0000
commitd498196712c209fdcbd92f65c0b47ff26fc6c009 (patch)
treec29e3155fe89dc3451352abb0796149731d13ea9 /config.h.in
parent425bb31e1dd095e16cdc463a636a78193e6c86b5 (diff)
downloadrspamd-d498196712c209fdcbd92f65c0b47ff26fc6c009.tar.gz
rspamd-d498196712c209fdcbd92f65c0b47ff26fc6c009.zip
[Minor] test: remove hard-coded build directory
* Reproducible build: avoid defining the BUILDROOT macro and avoid embedding the build directory in the test image. Instead rely on the test files being present next to the executable. * I considered using g_test_build_filename, available since GLib 2.38 (available on all supported platforms, RHEL 7, Debian, Ubuntu, etc.), but decided against it because it would require setting the G_TEST_SRCDIR or G_TEST_BUILDDIR environment variables. Therefore this patch simply parses argv0 directly.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in2
1 files changed, 0 insertions, 2 deletions
diff --git a/config.h.in b/config.h.in
index e711af6d6..c2d73a0a9 100644
--- a/config.h.in
+++ b/config.h.in
@@ -248,8 +248,6 @@
#define MODULES_NUM ${RSPAMD_MODULES_NUM}
-#define BUILDROOT "${CMAKE_BINARY_DIR}"
-
/* sys/types */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>