0024-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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. replace the compile definitions with the output locations.
  6. Upstream-Status: Inappropriate [would need reworking somehow to be acceptable upstream]
  7. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. support/Makefile | 6 +++---
  11. 1 file changed, 3 insertions(+), 3 deletions(-)
  12. diff --git a/support/Makefile b/support/Makefile
  13. index 9b50eac117..4c24d9f61a 100644
  14. --- a/support/Makefile
  15. +++ b/support/Makefile
  16. @@ -218,9 +218,9 @@ libsupport-inhibit-o += .o
  17. endif
  18. CFLAGS-support_paths.c = \
  19. - -DSRCDIR_PATH=\"`cd .. ; pwd`\" \
  20. - -DOBJDIR_PATH=\"`cd $(objpfx)/..; pwd`\" \
  21. - -DOBJDIR_ELF_LDSO_PATH=\"`cd $(objpfx)/..; pwd`/elf/$(rtld-installed-name)\" \
  22. + -DSRCDIR_PATH=\"$(oe_srcdir)\" \
  23. + -DOBJDIR_PATH=\"$(libdir)/glibc-tests/ptest/tests/glibc-ptest\" \
  24. + -DOBJDIR_ELF_LDSO_PATH=\"$(slibdir)/$(rtld-installed-name)\" \
  25. -DINSTDIR_PATH=\"$(prefix)\" \
  26. -DLIBDIR_PATH=\"$(libdir)\" \
  27. -DBINDIR_PATH=\"$(bindir)\" \