From: Eric Bollengier Date: Wed, 31 Jan 2024 14:25:25 +0000 (+0100) Subject: Fix org#2440 Improve Makefiles to use relative paths X-Git-Tag: Beta-15.0.1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ba86b2d59fe5870db7a180f0b5a4f6d6805ce9;p=thirdparty%2Fbacula.git Fix org#2440 Improve Makefiles to use relative paths We use the attached patch in Debian to work around an issue in GCC. See https://tests.reproducible-builds.org/debian/issues/unstable/gcc_captures_build_path_issue.html Also this makes the Makefiles more self-consistent, most use a relative path as "basedir". Thanks to Sven Hartge --- diff --git a/bacula/src/Makefile.in b/bacula/src/Makefile.in index ee20420a7..60757834a 100644 --- a/bacula/src/Makefile.in +++ b/bacula/src/Makefile.in @@ -9,9 +9,9 @@ VPATH = . .PATH: . # one up -basedir = @BUILD_DIR@ +basedir = .. # top dir -topdir = @BUILD_DIR@ +topdir = .. # this dir relative to top dir thisdir = src diff --git a/bacula/src/dird/Makefile.in b/bacula/src/dird/Makefile.in index 888c62664..691a6f62c 100644 --- a/bacula/src/dird/Makefile.in +++ b/bacula/src/dird/Makefile.in @@ -13,9 +13,9 @@ VPATH = . dir_group=@dir_group@ # one up -basedir = @BUILD_DIR@/src +basedir = .. # top dir -topdir = @BUILD_DIR@ +topdir = ../.. # this dir relative to top dir thisdir = src/dird