]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
support: Add support_install_rootsbindir
authorAlexandra Hájková <ahajkova@redhat.com>
Mon, 13 May 2019 17:31:53 +0000 (19:31 +0200)
committerAlexandra Hajkova <ahajkova@redhat.com>
Wed, 15 May 2019 09:37:26 +0000 (11:37 +0200)
Reviewed by: Adhemerval Zanella <adhemerval.zanella@linaro.org>

ChangeLog
support/Makefile
support/support.h
support/support_paths.c

index 4b4fac475526596636c0474e5c81d6aa14c991a7..dc4a814c3ff28df9341ff45ee1cecb05a273c7dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-05-15  Alexandra Hajkova  <ahajkova@redhat.com>
+       * support/support.h (support_install_rootsbindir): New variable.
+       * support/support_paths.c: Likewise.
+       * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
+
 2019-05-15  Florian Weimer  <fweimer@redhat.com>
 
        * iconv/gconv.h (__gconv_transliterate): Move declaration …
index fe416cdc5f1f3bd87e31a81d6843418d346f5081..18d39f5a50aa82b1809021959ae314e7887d01ed 100644 (file)
@@ -180,7 +180,8 @@ CFLAGS-support_paths.c = \
                -DOBJDIR_ELF_LDSO_PATH=\"`cd $(objpfx)/..; pwd`/elf/$(rtld-installed-name)\" \
                -DINSTDIR_PATH=\"$(prefix)\" \
                -DLIBDIR_PATH=\"$(libdir)\" \
-               -DBINDIR_PATH=\"$(bindir)\"
+               -DBINDIR_PATH=\"$(bindir)\" \
+               -DROOTSBINDIR_PATH=\"$(rootsbindir)\"
 
 ifeq (,$(CXX))
 LINKS_DSO_PROGRAM = links-dso-program-c
index b162491be6ac08ceb2f13c7c9c423566cef3f9c4..13076b75ba4fc776b5961b921e4fa559d246330a 100644 (file)
@@ -107,6 +107,8 @@ extern const char support_install_prefix[];
 extern const char support_libdir_prefix[];
 /* Corresponds to the install's bin/ directory.  */
 extern const char support_bindir_prefix[];
+/* Corresponds to the install's sbin/ directory.  */
+extern const char support_install_rootsbindir[];
 
 extern ssize_t support_copy_file_range (int, off64_t *, int, off64_t *,
                                        size_t, unsigned int);
index 75634aab9a3d2a633813f9d23d7d80b74fcd9d02..1fe32835b1df08fd6efb3c041418a88a39e69c48 100644 (file)
@@ -64,3 +64,10 @@ const char support_bindir_prefix[] = BINDIR_PATH;
 #else
 # error please -DBINDIR_PATH=something in the Makefile
 #endif
+
+#ifdef ROOTSBINDIR_PATH
+/* Corresponds to the install's sbin/ directory.  */
+const char support_install_rootsbindir[] = ROOTSBINDIR_PATH;
+#else
+# error please -DROOTSBINDIR_PATH=something in the Makefile
+#endif