|
|
8a8cfb |
commit d50f09181eca10a91fd9035bb90711b265770dc9
|
|
|
8a8cfb |
Author: Alexandra Hájková <ahajkova@redhat.com>
|
|
|
8a8cfb |
Date: Mon May 13 19:31:53 2019 +0200
|
|
|
8a8cfb |
|
|
|
8a8cfb |
support: Add support_install_rootsbindir
|
|
|
8a8cfb |
|
|
|
8a8cfb |
Reviewed by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
|
|
8a8cfb |
|
|
|
8a8cfb |
diff --git a/support/Makefile b/support/Makefile
|
|
|
8a8cfb |
index fe416cd..18d39f5 100644
|
|
|
8a8cfb |
--- a/support/Makefile
|
|
|
8a8cfb |
+++ b/support/Makefile
|
|
|
8a8cfb |
@@ -180,7 +180,8 @@ CFLAGS-support_paths.c = \
|
|
|
8a8cfb |
-DOBJDIR_ELF_LDSO_PATH=\"`cd $(objpfx)/..; pwd`/elf/$(rtld-installed-name)\" \
|
|
|
8a8cfb |
-DINSTDIR_PATH=\"$(prefix)\" \
|
|
|
8a8cfb |
-DLIBDIR_PATH=\"$(libdir)\" \
|
|
|
8a8cfb |
- -DBINDIR_PATH=\"$(bindir)\"
|
|
|
8a8cfb |
+ -DBINDIR_PATH=\"$(bindir)\" \
|
|
|
8a8cfb |
+ -DROOTSBINDIR_PATH=\"$(rootsbindir)\"
|
|
|
8a8cfb |
|
|
|
8a8cfb |
ifeq (,$(CXX))
|
|
|
8a8cfb |
LINKS_DSO_PROGRAM = links-dso-program-c
|
|
|
8a8cfb |
diff --git a/support/support.h b/support/support.h
|
|
|
8a8cfb |
index b162491..13076b7 100644
|
|
|
8a8cfb |
--- a/support/support.h
|
|
|
8a8cfb |
+++ b/support/support.h
|
|
|
8a8cfb |
@@ -107,6 +107,8 @@ extern const char support_install_prefix[];
|
|
|
8a8cfb |
extern const char support_libdir_prefix[];
|
|
|
8a8cfb |
/* Corresponds to the install's bin/ directory. */
|
|
|
8a8cfb |
extern const char support_bindir_prefix[];
|
|
|
8a8cfb |
+/* Corresponds to the install's sbin/ directory. */
|
|
|
8a8cfb |
+extern const char support_install_rootsbindir[];
|
|
|
8a8cfb |
|
|
|
8a8cfb |
extern ssize_t support_copy_file_range (int, off64_t *, int, off64_t *,
|
|
|
8a8cfb |
size_t, unsigned int);
|
|
|
8a8cfb |
diff --git a/support/support_paths.c b/support/support_paths.c
|
|
|
8a8cfb |
index 75634aa..1fe3283 100644
|
|
|
8a8cfb |
--- a/support/support_paths.c
|
|
|
8a8cfb |
+++ b/support/support_paths.c
|
|
|
8a8cfb |
@@ -64,3 +64,10 @@ const char support_bindir_prefix[] = BINDIR_PATH;
|
|
|
8a8cfb |
#else
|
|
|
8a8cfb |
# error please -DBINDIR_PATH=something in the Makefile
|
|
|
8a8cfb |
#endif
|
|
|
8a8cfb |
+
|
|
|
8a8cfb |
+#ifdef ROOTSBINDIR_PATH
|
|
|
8a8cfb |
+/* Corresponds to the install's sbin/ directory. */
|
|
|
8a8cfb |
+const char support_install_rootsbindir[] = ROOTSBINDIR_PATH;
|
|
|
8a8cfb |
+#else
|
|
|
8a8cfb |
+# error please -DROOTSBINDIR_PATH=something in the Makefile
|
|
|
8a8cfb |
+#endif
|