forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc9: Add no-sys-dir patch for RISC-V
Same as in gcc{10,11} (NixOS#147942).
- Loading branch information
1 parent
4bedea7
commit 2952075
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
pkgs/development/compilers/gcc/no-sys-dirs-riscv-gcc9.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/gcc/config/riscv/riscv.h b/gcc/config/riscv/riscv.h | ||
index 701f5ea1544..8de333caf54 100644 | ||
--- a/gcc/config/riscv/riscv.h | ||
+++ b/gcc/config/riscv/riscv.h | ||
@@ -886,11 +886,7 @@ extern unsigned riscv_stack_boundary; | ||
"%{mabi=lp64f:lp64f}" \ | ||
"%{mabi=lp64d:lp64d}" \ | ||
|
||
-#define STARTFILE_PREFIX_SPEC \ | ||
- "/lib" XLEN_SPEC "/" ABI_SPEC "/ " \ | ||
- "/usr/lib" XLEN_SPEC "/" ABI_SPEC "/ " \ | ||
- "/lib/ " \ | ||
- "/usr/lib/ " | ||
+#define STARTFILE_PREFIX_SPEC "" | ||
|
||
/* ISA constants needed for code generation. */ | ||
#define OPCODE_LW 0x2003 |