diff options
author | Jim Wilson <jimw@sifive.com> | 2018-01-26 21:24:22 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2018-01-26 13:24:22 -0800 |
commit | ee61fae2b1e8315f016384ab5b76dee796d880cd (patch) | |
tree | c7ebe4f672f4bc9f1e9b457649dfcab28929f564 /gcc/config/riscv | |
parent | b5d0b3d27ac0f109f014b23563ae38535e3815d4 (diff) | |
download | gcc-ee61fae2b1e8315f016384ab5b76dee796d880cd.zip gcc-ee61fae2b1e8315f016384ab5b76dee796d880cd.tar.gz gcc-ee61fae2b1e8315f016384ab5b76dee796d880cd.tar.bz2 |
RISC-V: Add --specs=nosys.specs support.
gcc/
* config/riscv/elf.h (LIB_SPEC): Don't include -lgloss when nosys.specs
specified.
From-SVN: r257109
Diffstat (limited to 'gcc/config/riscv')
-rw-r--r-- | gcc/config/riscv/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/elf.h b/gcc/config/riscv/elf.h index 43ad68b..f39e832 100644 --- a/gcc/config/riscv/elf.h +++ b/gcc/config/riscv/elf.h @@ -24,7 +24,7 @@ along with GCC; see the file COPYING3. If not see /* Link against Newlib libraries, because the ELF backend assumes Newlib. Handle the circular dependence between libc and libgloss. */ #undef LIB_SPEC -#define LIB_SPEC "--start-group -lc -lgloss --end-group" +#define LIB_SPEC "--start-group -lc %{!specs=nosys.specs:-lgloss} --end-group" #undef STARTFILE_SPEC #define STARTFILE_SPEC "crt0%O%s crtbegin%O%s" |