Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From f873e25e29684cbbf7b141d9c6ee725268505c29 Mon Sep 17 00:00:00 2001 |
| 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 3 | Date: Sun, 24 Jul 2022 07:07:29 -0700 |
| 4 | Subject: [PATCH] Avoid hardcoded build time paths in the output binaries |
| 5 | |
| 6 | replace the compile definitions with the output locations. |
| 7 | |
| 8 | Upstream-Status: Inappropriate [would need reworking somehow to be acceptable upstream] |
| 9 | |
| 10 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | support/Makefile | 6 +++--- |
| 14 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 15 | |
| 16 | diff --git a/support/Makefile b/support/Makefile |
| 17 | index 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)\" \ |