diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-05-20 21:08:40 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-05-20 21:15:35 +0200 |
commit | 75c51570c710aa9c6df6b7a1e131392e1408c63f (patch) | |
tree | b0ebc4733220d33ec5862cb99ecdbd40d471d0b0 | |
parent | b62bb3bc683ab1ca5f69631f0b588a406370d5dc (diff) | |
download | glibc-75c51570c710aa9c6df6b7a1e131392e1408c63f.tar glibc-75c51570c710aa9c6df6b7a1e131392e1408c63f.tar.gz glibc-75c51570c710aa9c6df6b7a1e131392e1408c63f.tar.bz2 glibc-75c51570c710aa9c6df6b7a1e131392e1408c63f.zip |
support: Expose sbindir as support_sbindir_prefix
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | support/Makefile | 1 | ||||
-rw-r--r-- | support/support.h | 2 | ||||
-rw-r--r-- | support/support_paths.c | 7 |
4 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2019-05-20 Florian Weimer <fweimer@redhat.com> + + * support/support.h (support_sbindir_prefix): Declare. + (support_install_rootsbindir): Update comment. + * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH. + * support/support_paths.c (support_sbindir_prefix): Define. + 2019-05-20 Mike Crowe <mac@mcrowe.com> * support/timespec.c: Add backslash to correct newline in failure diff --git a/support/Makefile b/support/Makefile index 18d39f5a50..56c1ed43bb 100644 --- a/support/Makefile +++ b/support/Makefile @@ -181,6 +181,7 @@ CFLAGS-support_paths.c = \ -DINSTDIR_PATH=\"$(prefix)\" \ -DLIBDIR_PATH=\"$(libdir)\" \ -DBINDIR_PATH=\"$(bindir)\" \ + -DSBINDIR_PATH=\"$(sbindir)\" \ -DROOTSBINDIR_PATH=\"$(rootsbindir)\" ifeq (,$(CXX)) diff --git a/support/support.h b/support/support.h index 13076b75ba..d72f807477 100644 --- a/support/support.h +++ b/support/support.h @@ -108,6 +108,8 @@ 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_sbindir_prefix[]; +/* Corresponds to the install's sbin/ directory (without prefix). */ extern const char support_install_rootsbindir[]; extern ssize_t support_copy_file_range (int, off64_t *, int, off64_t *, diff --git a/support/support_paths.c b/support/support_paths.c index 1fe32835b1..ff1df2bf20 100644 --- a/support/support_paths.c +++ b/support/support_paths.c @@ -65,6 +65,13 @@ const char support_bindir_prefix[] = BINDIR_PATH; # error please -DBINDIR_PATH=something in the Makefile #endif +#ifdef SBINDIR_PATH +/* Corresponds to the install's bin/ directory. */ +const char support_sbindir_prefix[] = SBINDIR_PATH; +#else +# error please -DSBINDIR_PATH=something in the Makefile +#endif + #ifdef ROOTSBINDIR_PATH /* Corresponds to the install's sbin/ directory. */ const char support_install_rootsbindir[] = ROOTSBINDIR_PATH; |