diff options
author | Richard Sandiford <rsandifo@nildram.co.uk> | 2005-01-19 11:42:49 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@nildram.co.uk> | 2005-01-19 11:42:49 +0000 |
commit | 3b08da642930356296d841eac95dc6d6ac877bb4 (patch) | |
tree | dc2a52063208b0c6905b2f61aa83b34d162a871e /ld/ldmain.h | |
parent | 26ec5139e5b01d0befdcbd70b3730a8f3ea36310 (diff) | |
download | binutils-redhat-3b08da642930356296d841eac95dc6d6ac877bb4.tar.gz |
* ldmain.h (ld_sysroot): Change type to a constant string.
* ldmain.c (ld_sysroot): Likewise.
(get_relative_sysroot, get_sysroot): New functions, adding command-line
support for changing the sysroot.
(main): Call the new functions.
* lexsup.c (OPTION_SYSROOT): New.
(ld_options): Add --sysroot.
(parse_args): Add a dummy handler for it.
* ld.texinfo (--sysroot): Document.
* NEWS: Mention the new --sysroot option.
Diffstat (limited to 'ld/ldmain.h')
-rw-r--r-- | ld/ldmain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldmain.h b/ld/ldmain.h index 976810ebd1..6fba64688f 100644 --- a/ld/ldmain.h +++ b/ld/ldmain.h @@ -23,7 +23,7 @@ #define LDMAIN_H extern char *program_name; -extern char *ld_sysroot; +extern const char *ld_sysroot; extern char *ld_canon_sysroot; extern int ld_canon_sysroot_len; extern bfd *output_bfd; |