blob: 7983d1f6a716d598a1632792583fd17839dfb386 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From f873e25e29684cbbf7b141d9c6ee725268505c29 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Sun, 24 Jul 2022 07:07:29 -0700
4Subject: [PATCH] Avoid hardcoded build time paths in the output binaries
5
6replace the compile definitions with the output locations.
7
8Upstream-Status: Inappropriate [would need reworking somehow to be acceptable upstream]
9
10Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 support/Makefile | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16diff --git a/support/Makefile b/support/Makefile
17index 9b50eac117..4c24d9f61a 100644
18--- a/support/Makefile
19+++ b/support/Makefile
20@@ -218,9 +218,9 @@ libsupport-inhibit-o += .o
21 endif
22
23 CFLAGS-support_paths.c = \
24- -DSRCDIR_PATH=\"`cd .. ; pwd`\" \
25- -DOBJDIR_PATH=\"`cd $(objpfx)/..; pwd`\" \
26- -DOBJDIR_ELF_LDSO_PATH=\"`cd $(objpfx)/..; pwd`/elf/$(rtld-installed-name)\" \
27+ -DSRCDIR_PATH=\"$(oe_srcdir)\" \
28+ -DOBJDIR_PATH=\"$(libdir)/glibc-tests/ptest/tests/glibc-ptest\" \
29+ -DOBJDIR_ELF_LDSO_PATH=\"$(slibdir)/$(rtld-installed-name)\" \
30 -DINSTDIR_PATH=\"$(prefix)\" \
31 -DLIBDIR_PATH=\"$(libdir)\" \
32 -DBINDIR_PATH=\"$(bindir)\" \