diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2005-01-19 11:42:49 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2005-01-19 11:42:49 +0000 |
commit | e22430578c7bc54a36eb0a8cc0a083f5b4826998 (patch) | |
tree | 23f1a24cbe20dc77284ec48185ef5e5a6022b72e /ld/ldmain.h | |
parent | 53283f867b4157d728963a9699bce30e2d24f033 (diff) | |
download | gdb-e22430578c7bc54a36eb0a8cc0a083f5b4826998.zip gdb-e22430578c7bc54a36eb0a8cc0a083f5b4826998.tar.gz gdb-e22430578c7bc54a36eb0a8cc0a083f5b4826998.tar.bz2 |
* 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 976810e..6fba646 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; |