* update riscv64-unknown-linux-gnu-gcc to 13.2.1-3.2
This commit is contained in:
parent
69449bd7ff
commit
9f959c35e6
@ -24,13 +24,15 @@ conflicts=("${_target}-gcc-stage1" "${_target}-gcc-stage2")
|
||||
replaces=("${_target}-gcc-stage1" "${_target}-gcc-stage2")
|
||||
provides=("${_target}-gcc-stage1=${pkgver}" "${_target}-gcc-stage2=${pkgver}")
|
||||
source=(git+https://sourceware.org/git/gcc.git#commit=${_commit}
|
||||
gcc11-Wno-format-security.patch)
|
||||
gcc11-Wno-format-security.patch
|
||||
unfilter-default-library-path.patch)
|
||||
validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org
|
||||
86CFFCA918CF3AF47147588051E8B148A9999C34 # evangelos@foutrelis.com
|
||||
13975A70E63C361C73AE69EF6EEB81F8981C74C7 # richard.guenther@gmail.com
|
||||
D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62) # Jakub Jelinek <jakub@redhat.com>
|
||||
sha256sums=('SKIP'
|
||||
'504e4b5a08eb25b6c35f19fdbe0c743ae4e9015d0af4759e74150006c283585e')
|
||||
'504e4b5a08eb25b6c35f19fdbe0c743ae4e9015d0af4759e74150006c283585e'
|
||||
'7183fdeea8fd148cf9dd03b0932f9d439b818a5ab3bc9a5e20d8e0b41c9e0efd')
|
||||
|
||||
prepare() {
|
||||
[[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc
|
||||
@ -45,6 +47,8 @@ prepare() {
|
||||
# configure.ac: When adding -Wno-format, also add -Wno-format-security
|
||||
patch -Np0 < "$srcdir/gcc11-Wno-format-security.patch"
|
||||
|
||||
patch -Np1 -i ${srcdir}/unfilter-default-library-path.patch
|
||||
|
||||
mkdir -p "$srcdir/gcc-build"
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
|
||||
index 16bb07f2cdc..1beb23ba279 100644
|
||||
--- a/gcc/gcc.cc
|
||||
+++ b/gcc/gcc.cc
|
||||
@@ -7904,17 +7904,6 @@ is_directory (const char *path1, bool linker)
|
||||
*cp++ = '.';
|
||||
*cp = '\0';
|
||||
|
||||
- /* Exclude directories that the linker is known to search. */
|
||||
- if (linker
|
||||
- && IS_DIR_SEPARATOR (path[0])
|
||||
- && ((cp - path == 6
|
||||
- && filename_ncmp (path + 1, "lib", 3) == 0)
|
||||
- || (cp - path == 10
|
||||
- && filename_ncmp (path + 1, "usr", 3) == 0
|
||||
- && IS_DIR_SEPARATOR (path[4])
|
||||
- && filename_ncmp (path + 5, "lib", 3) == 0)))
|
||||
- return 0;
|
||||
-
|
||||
return (stat (path, &st) >= 0 && S_ISDIR (st.st_mode));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user