Files
macports-ports/python/py-pyzstd/files/patch-no-flto.diff
2024-11-22 12:15:58 -05:00

20 lines
1.1 KiB
Diff

--- setup.py 2024-10-11 03:39:50.000000000 +0800
+++ setup.py 2024-11-08 18:43:47.000000000 +0800
@@ -70,14 +70,14 @@
# This option runs the standard link-time optimizer. To use the
# link-time optimizer, -flto and optimization options should be
# specified at compile time and during the final link.
- more_options = ['-g0', '-flto']
+ more_options = ['-g0']
if self.PYZSTD_AVX2:
instrs = ['-mavx2', '-mlzcnt', '-mbmi', '-mbmi2']
more_options.extend(instrs)
if self.PYZSTD_WARNING_AS_ERROR:
more_options.append('-Werror')
extension.extra_compile_args.extend(more_options)
- extension.extra_link_args.extend(['-g0', '-flto'])
+ extension.extra_link_args.extend(['-g0'])
elif self.compiler.compiler_type == 'msvc':
# Remove .S source files, they use gcc/clang syntax.
extension.sources = [i for i in extension.sources