From d498196712c209fdcbd92f65c0b47ff26fc6c009 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 21 Jan 2020 02:21:31 +0000 Subject: [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. --- config.h.in | 2 -- 1 file changed, 2 deletions(-) (limited to 'config.h.in') 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 -- cgit v1.2.3