unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] configure.ac: option for user-defined-trusted-dirs
@ 2019-12-31 19:35 justinpopo6
  2019-12-31 19:49 ` Florian Weimer
  0 siblings, 1 reply; 2+ messages in thread
From: justinpopo6 @ 2019-12-31 19:35 UTC (permalink / raw)
  To: libc-alpha; +Cc: f.fainelli, code, Justin Chen

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] configure.ac: option for user-defined-trusted-dirs
  2019-12-31 19:35 [PATCH] configure.ac: option for user-defined-trusted-dirs justinpopo6
@ 2019-12-31 19:49 ` Florian Weimer
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2019-12-31 19:49 UTC (permalink / raw)
  To: justinpopo6; +Cc: libc-alpha, f.fainelli, code

* justinpopo6:

> 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.

Seems reasonable, but we should document the new option in
manual/install.texi, and regenerate the configure and INSTALL files.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-31 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-31 19:35 [PATCH] configure.ac: option for user-defined-trusted-dirs justinpopo6
2019-12-31 19:49 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).