Message ID | 20180126212814.22324-1-jimw@sifive.com |
---|---|
State | New |
Headers | show |
Series | RISC-V: Add --specs=nosys.specs support. | expand |
diff --git a/gcc/config/riscv/elf.h b/gcc/config/riscv/elf.h index 43ad68bbdf2..f39e83234d2 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"