blob: 789d36cacb0886f4a1ddabd419417f942d0eaa06 [file] [log] [blame]
Patrick Williams864cc432023-02-09 14:54:44 -06001From b672a35f7d9e25baa83f3fd854a51bc1ad49756a Mon Sep 17 00:00:00 2001
Patrick Williams92b42cb2022-09-03 06:53:57 -05002From: 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
Patrick Williams864cc432023-02-09 14:54:44 -060017index b29b7eb505..ae42e6e7e9 100644
Patrick Williams92b42cb2022-09-03 06:53:57 -050018--- a/support/Makefile
19+++ b/support/Makefile
Patrick Williams864cc432023-02-09 14:54:44 -060020@@ -219,9 +219,9 @@ libsupport-inhibit-o += .o
Patrick Williams92b42cb2022-09-03 06:53:57 -050021 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)\" \