[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/11: gnu: gcc: Use _FILE_OFFSET_BITS=64 for libstdc++-v3.
From: |
guix-commits |
Subject: |
02/11: gnu: gcc: Use _FILE_OFFSET_BITS=64 for libstdc++-v3. |
Date: |
Tue, 29 Sep 2020 09:32:17 -0400 (EDT) |
dannym pushed a commit to branch wip-file-offset-bits-64
in repository guix.
commit 024bd3e37ee51f48d590c3ddd7bfacf04385295e
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Mon Sep 28 00:47:13 2020 +0200
gnu: gcc: Use _FILE_OFFSET_BITS=64 for libstdc++-v3.
* gnu/packages/patches/gcc-7-dir-file-offsets64.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gcc.scm (gcc-7)[source]: Add it.
---
gnu/local.mk | 1 +
gnu/packages/gcc.scm | 3 ++-
gnu/packages/patches/gcc-7-dir-file-offsets64.patch | 10 ++++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 8c93e19..33f1b85 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -995,6 +995,7 @@ dist_patch_DATA =
\
%D%/packages/patches/gcc-libsanitizer-ustat.patch \
%D%/packages/patches/gcc-4.9-libsanitizer-mode-size.patch \
%D%/packages/patches/gcc-6-libsanitizer-mode-size.patch \
+ %D%/packages/patches/gcc-7-dir-file-offsets64.patch \
%D%/packages/patches/gcc-7-libsanitizer-mode-size.patch \
%D%/packages/patches/gcc-libvtv-runpath.patch \
%D%/packages/patches/gcc-strmov-store-file-names.patch \
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 4d5aaa7..b90b536 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -536,7 +536,8 @@ Go. It also includes runtime support libraries for these
languages.")
"0qg6kqc5l72hpnj4vr6l0p69qav0rh4anlkk3y55540zy3klc6dq"))
(patches (search-patches "gcc-strmov-store-file-names.patch"
"gcc-7-libsanitizer-mode-size.patch"
- "gcc-5.0-libvtv-runpath.patch"))))
+ "gcc-5.0-libvtv-runpath.patch"
+ "gcc-7-dir-file-offsets64.patch"))))
(description
"GCC is the GNU Compiler Collection. It provides compiler front-ends
for several languages, including C, C++, Objective-C, Fortran, Ada, and Go.
diff --git a/gnu/packages/patches/gcc-7-dir-file-offsets64.patch
b/gnu/packages/patches/gcc-7-dir-file-offsets64.patch
new file mode 100644
index 0000000..be8f904
--- /dev/null
+++ b/gnu/packages/patches/gcc-7-dir-file-offsets64.patch
@@ -0,0 +1,10 @@
+--- orig/gcc-7.5.0/libstdc++-v3/src/filesystem/dir.cc 1970-01-01
01:00:01.000000000 +0100
++++ gcc-7.5.0/libstdc++-v3/src/filesystem/dir.cc 2020-09-27
15:26:33.014813146 +0200
+@@ -25,6 +25,7 @@
+ #ifndef _GLIBCXX_USE_CXX11_ABI
+ # define _GLIBCXX_USE_CXX11_ABI 1
+ #endif
++#define _FILE_OFFSET_BITS 64
+
+ #include <experimental/filesystem>
+ #include <utility>
- branch wip-file-offset-bits-64 created (now 911e33e), guix-commits, 2020/09/29
- 03/11: gnu: libidn2: Explicitly declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29
- 05/11: gnu: libtasn1: Explicitly declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29
- 01/11: gnu: glibc-final: Catch all cases of a glibc user not requesting 64-bit offsets and then using readdir regardless., guix-commits, 2020/09/29
- 02/11: gnu: gcc: Use _FILE_OFFSET_BITS=64 for libstdc++-v3.,
guix-commits <=
- 04/11: gnu: fontconfig: Explicitly declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29
- 06/11: gnu: openssl: Explicitly declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29
- 11/11: gnu: cmake: Explicity declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29
- 09/11: gnu: rhash: Explicity declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29
- 07/11: gnu: libtool: Explicity declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29
- 08/11: gnu: libltdl: Explicity declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29
- 10/11: gnu: cmake-bootstrap: Explicity declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/29