profiles/features/musl: mask app-crypt/mit-krb5-appl
[gentoo/gentoo.git] / dev-build / gn / files / gn-gen-r5.patch
blob80966b3c7f5e05d7b11767bfa8e178313a49db30
1 From ef45f2e73264e62ad3fb24d064453a17099da8d7 Mon Sep 17 00:00:00 2001
2 From: Mike Gilbert <floppym@gentoo.org>
3 Date: Sat, 14 Mar 2020 18:02:51 +0000
4 Subject: [PATCH] Remove unwanted cflags/ldflags parameters
6 ---
7 build/gen.py | 9 ---------
8 1 file changed, 9 deletions(-)
10 diff --git a/build/gen.py b/build/gen.py
11 index 265b1f5..06c6d8b 100755
12 --- a/build/gen.py
13 +++ b/build/gen.py
14 @@ -343,11 +343,6 @@ def WriteGNNinja(path, platform, host, options):
15 if options.debug:
16 cflags.extend(['-O0', '-g'])
17 else:
18 - cflags.append('-DNDEBUG')
19 - cflags.append('-O3')
20 - if options.no_strip:
21 - cflags.append('-g')
22 - ldflags.append('-O3')
23 # Use -fdata-sections and -ffunction-sections to place each function
24 # or data item into its own section so --gc-sections can eliminate any
25 # unused functions and data items.
26 @@ -383,7 +378,6 @@ def WriteGNNinja(path, platform, host, options):
27 '-D_FILE_OFFSET_BITS=64',
28 '-D__STDC_CONSTANT_MACROS', '-D__STDC_FORMAT_MACROS',
29 '-pthread',
30 - '-pipe',
31 '-fno-exceptions',
32 '-fno-rtti',
33 '-fdiagnostics-color',
34 @@ -411,9 +405,6 @@ def WriteGNNinja(path, platform, host, options):
35 '-Wno-cast-function-type', # Casting FARPROC to RegDeleteKeyExPtr
36 '-std=gnu++17',
38 - else:
39 - # This is needed by libc++.
40 - libs.append('-ldl')
41 elif platform.is_darwin():
42 min_mac_version_flag = '-mmacosx-version-min=10.9'
43 cflags.append(min_mac_version_flag)
44 --
45 2.32.0