diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2006-11-30 17:05:45 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2006-11-30 17:05:45 +0000 |
commit | 334737afb7f669464b04246783ba48b777f1e809 (patch) | |
tree | dfab9db15a2a570a363138a02582f20e1f90f56b /include/libiberty.h | |
parent | 456cde303058f8e7a01ff00e12bddba44a1bac75 (diff) | |
download | gcc-334737afb7f669464b04246783ba48b777f1e809.tar.gz |
re PR driver/29931 (following argv[0] symlink in process_command breaks symlinked-together toolchain)
include:
2006-05-03 Andrew Stubbs <andrew.stubbs@st.com>
J"orn Rennecke <joern.rennecke@st.com>
PR driver/29931
* libiberty.h (make_relative_prefix_ignore_links): Declare.
libiberty:
2006-05-03 Andrew Stubbs <andrew.stubbs@st.com>
J"orn Rennecke <joern.rennecke@st.com>
PR driver/29931
* make-relative-prefix.c (make_relative_prefix_1): New function,
broken out of make_relative_prefix. Make link resolution dependent
on new parameter.
(make_relative_prefix): Use make_relative_prefix_1.
(make_relative_prefix_ignore_links): New function.
Co-Authored-By: J"orn Rennecke <joern.rennecke@st.com>
From-SVN: r119366
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index 1328d3eb14c..27291c98868 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -197,6 +197,13 @@ extern long get_run_time (void); extern char *make_relative_prefix (const char *, const char *, const char *) ATTRIBUTE_MALLOC; +/* Generate a relocated path to some installation directory without + attempting to follow any soft links. Allocates + return value using malloc. */ + +extern char *make_relative_prefix_ignore_links (const char *, const char *, + const char *) ATTRIBUTE_MALLOC; + /* Choose a temporary directory to use for scratch files. */ extern char *choose_temp_base (void) ATTRIBUTE_MALLOC; |