summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/0033-build-Enable-64bit-off_t-on-32bit-glibc-systems.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/clang/clang/0033-build-Enable-64bit-off_t-on-32bit-glibc-systems.patch')
-rw-r--r--recipes-devtools/clang/clang/0033-build-Enable-64bit-off_t-on-32bit-glibc-systems.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/recipes-devtools/clang/clang/0033-build-Enable-64bit-off_t-on-32bit-glibc-systems.patch b/recipes-devtools/clang/clang/0033-build-Enable-64bit-off_t-on-32bit-glibc-systems.patch
deleted file mode 100644
index 85a0a0d..0000000
--- a/recipes-devtools/clang/clang/0033-build-Enable-64bit-off_t-on-32bit-glibc-systems.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From 81298058cd344f695fe22da4a367db08709a85e1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 25 Dec 2022 15:13:41 -0800
4Subject: [PATCH] build: Enable 64bit off_t on 32bit glibc systems
5
6Pass -D_FILE_OFFSET_BITS=64 to compiler flags on 32bit glibc based
7systems. This will make sure that 64bit versions of LFS functions are
8used e.g. lseek will behave same as lseek64. Also revert [1] partially
9because this added a cmake test to detect lseek64 but then forgot to
10pass the needed macro during actual compile, this test was incomplete too
11since libc implementations like musl has 64-bit off_t by default on 32-bit
12systems and does not bundle -D_LARGEFILE64_SOURCE [2] under -D_GNU_SOURCE
13like glibc, which means the compile now fails on musl because the cmake
14check passes but we do not have _LARGEFILE64_SOURCE defined. Moreover,
15Using the *64 function was transitional anyways so use
16-D_FILE_OFFSET_BITS=64 instead
17
18[1] https://github.com/llvm/llvm-project/commit/8db7e5e4eed4c4e697dc3164f2c9351d8c3e942b
19[2] https://git.musl-libc.org/cgit/musl/commit/?id=25e6fee27f4a293728dd15b659170e7b9c7db9bc
20
21Upstream-Status: Pending
22Signed-off-by: Khem Raj <raj.khem@gmail.com>
23---
24 utils/bazel/llvm-project-overlay/llvm/config.bzl | 1 -
25 .../llvm-project-overlay/llvm/include/llvm/Config/config.h | 3 ---
26 2 files changed, 4 deletions(-)
27
28diff --git a/utils/bazel/llvm-project-overlay/llvm/config.bzl b/utils/bazel/llvm-project-overlay/llvm/config.bzl
29index 5507f80efa0b..b15ec9e1bb39 100644
30--- a/utils/bazel/llvm-project-overlay/llvm/config.bzl
31+++ b/utils/bazel/llvm-project-overlay/llvm/config.bzl
32@@ -48,7 +48,6 @@ posix_defines = [
33 linux_defines = posix_defines + [
34 "_GNU_SOURCE",
35 "HAVE_LINK_H=1",
36- "HAVE_LSEEK64=1",
37 "HAVE_MALLINFO=1",
38 "HAVE_SBRK=1",
39 "HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1",
40diff --git a/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h b/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
41index 8a30957b6120..6a68ac040bb8 100644
42--- a/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
43+++ b/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
44@@ -144,9 +144,6 @@
45 /* Define to 1 if you have the <link.h> header file. */
46 /* HAVE_LINK_H defined in Bazel */
47
48-/* Define to 1 if you have the `lseek64' function. */
49-/* HAVE_LSEEK64 defined in Bazel */
50-
51 /* Define to 1 if you have the <mach/mach.h> header file. */
52 /* HAVE_MACH_MACH_H defined in Bazel */
53