This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] configure.ac: option for user-defined-trusted-dirs
- From: justinpopo6 at gmail dot com
- To: libc-alpha at sourceware dot org
- Cc: f dot fainelli at gmail dot com, code at mmayer dot net, Justin Chen <justinpopo6 at gmail dot com>
- Date: Tue, 31 Dec 2019 11:35:59 -0800
- Subject: [PATCH] configure.ac: option for user-defined-trusted-dirs
- Dkim-filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 07A0A30C23E
From: Justin Chen <justinpopo6@gmail.com>
User-defined-trusted-dirs is a variable used for adding additional
default library search dirs for the dynamic loader. Add the ability
to allow users to set it from the configure script.
---
configure.ac | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/configure.ac b/configure.ac
index 49b900c..a46532d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -517,6 +517,18 @@ AC_ARG_WITH([cpu],
esac
])
+user_defined_trusted_dirs=
+AC_ARG_WITH([user-defined-trusted-dirs],
+ AS_HELP_STRING([--with-user-defined-trusted-dirs=DIRS], [Additional default ld search dirs]),
+ [dnl
+ case "$withval" in
+ yes|'') AC_MSG_ERROR([--with-user-defined-trusted-dirs requires an argument]) ;;
+ no) ;;
+ *) user_defined_trusted_dirs="$withval" ;;
+ esac
+])
+LIBC_CONFIG_VAR([user-defined-trusted-dirs], [$user_defined_trusted_dirs])
+
# An preconfigure script can set this when it wants to disable the sanity
# check below.
libc_config_ok=no
--
2.7.4