about summary refs log tree commit diff
path: root/support/support_paths.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-05-13 13:57:37 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-05-14 11:04:37 -0300
commitc7ac9caaae6f8d02d4e0c7618d4991324a084c66 (patch)
treede931949e6be6b02da190dd6e9f7324ba1c7798c /support/support_paths.c
parent91f043ae84947a8a25eb94329fcb4fd1ea3914c3 (diff)
downloadglibc-c7ac9caaae6f8d02d4e0c7618d4991324a084c66.tar.gz
glibc-c7ac9caaae6f8d02d4e0c7618d4991324a084c66.tar.xz
glibc-c7ac9caaae6f8d02d4e0c7618d4991324a084c66.zip
support: Export bindir path on support_path
Checked on x86_64-linux-gnu.

	* support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
	* support/support.h (support_bindir_prefix): New variable.
	* support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):

Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'support/support_paths.c')
-rw-r--r--support/support_paths.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/support/support_paths.c b/support/support_paths.c
index 937e6e1012..75634aab9a 100644
--- a/support/support_paths.c
+++ b/support/support_paths.c
@@ -57,3 +57,10 @@ const char support_libdir_prefix[] = LIBDIR_PATH;
 #else
 # error please -DLIBDIR_PATH=something in the Makefile
 #endif
+
+#ifdef BINDIR_PATH
+/* Corresponds to the install's bin/ directory.  */
+const char support_bindir_prefix[] = BINDIR_PATH;
+#else
+# error please -DBINDIR_PATH=something in the Makefile
+#endif