build: Fix out-of-tree builds for CTF debuginfo platforms

Object directory builds that are configured to include CTF debuginfo
(e.g., Solaris with ctf tools installed and configure --enable-debug)
will fail with:

  make
  ...
  sh: line 1: /export/home/mvitale/src/sna-openafs-master/src/config/cc-wrapper: not found
  ...

Modify the path for CC_WRAPPER and LD_WRAPPER to point to the object
directory, not the source directory.

Change-Id: I972be95e7cd7b5dbac3ca6d8d76077cb152618c2
Reviewed-on: https://gerrit.openafs.org/15815
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Mark Vitale 2024-08-12 13:50:32 -04:00 committed by Michael Meffie
parent a76e2024cd
commit d6fd49c551

View File

@ -28,8 +28,8 @@ AS_CASE([$CTF_TOOLS],
CC_WRAPPER=
LD_WRAPPER=
AS_IF([test x"$CTFCONVERT" != x && test x"$CTFMERGE" != x],
[CC_WRAPPER="$TOP_SRCDIR/config/cc-wrapper cc"
LD_WRAPPER="$TOP_SRCDIR/config/cc-wrapper ld"])
[CC_WRAPPER="${TOP_OBJDIR}/src/config/cc-wrapper cc"
LD_WRAPPER="${TOP_OBJDIR}/src/config/cc-wrapper ld"])
AC_SUBST([CC_WRAPPER])
AC_SUBST([LD_WRAPPER])