diff --git a/llvm-build/MakeLiblzma b/llvm-build/MakeLiblzma index 681fa4e1304f3fd528d85639633c7e5fa1e2f5b4..157d73ae363737e6964c16f01f931a6729e25b3e 100644 --- a/llvm-build/MakeLiblzma +++ b/llvm-build/MakeLiblzma @@ -25,7 +25,7 @@ LDFLAGS := -shared -fuse-ld=lld -Wl,-z,relro,-z,now -Wl,-z,noexecstack TARGET := liblzma.so else ifeq ($(TARGET_TRIPLE),windows-x86_64) -CFLAGS := --target=x86_64-pc-windows-gnu --sysroot=$(SYSROOT) -D_7ZIP_ST -Wall -Werror -Wno-empty-body -Wno-enum-conversion -Wno-logical-op-parentheses -Wno-self-assign -fPIC -fstack-protector-strong +CFLAGS := --target=x86_64-pc-windows-gnu --sysroot=$(SYSROOT) -D_7ZIP_ST -Wall -Werror -Wno-empty-body -Wno-enum-conversion -Wno-logical-op-parentheses -Wno-self-assign -fPIC LDFLAGS := -shared -fuse-ld=lld --rtlib=compiler-rt -Wl,--out-implib=liblzma.dll.a TARGET := liblzma.dll TARGET_A := liblzma.dll.a diff --git a/llvm-build/build.py b/llvm-build/build.py index e7d073143120fea7203f9099647f532f8edc22d5..90c454453b99d9c256cce185fa64a3942245d4b4 100755 --- a/llvm-build/build.py +++ b/llvm-build/build.py @@ -1161,8 +1161,7 @@ class LlvmCore(BuildUtils): '-Wl,--high-entropy-va'] ldflags.extend(ldflag) - cflag = ['-fstack-protector-strong', - '-stdlib=libc++', + cflag = ['-stdlib=libc++', '--target=x86_64-pc-windows-gnu', '-fdata-sections', '-D_LARGEFILE_SOURCE', @@ -2227,7 +2226,6 @@ class LlvmLibs(BuildUtils): cflags = ['--target=x86_64-pc-windows-gnu'] cflags.extend(('-I', os.path.join(windows_sysroot, 'include'))) - cflags.append('-fstack-protector-strong') ldflags = ['-fuse-ld=lld', '--rtlib=compiler-rt'] diff --git a/llvm-build/python_builder.py b/llvm-build/python_builder.py index 92190baac7b82016f8270e5577e99e463a30b2ec..e7f8e26c04db6b6630983ece8f11edd8ad431522 100755 --- a/llvm-build/python_builder.py +++ b/llvm-build/python_builder.py @@ -225,7 +225,6 @@ class MinGWPythonBuilder(PythonBuilder): cflags = [ f'-target {self.target_platform}', f'--sysroot={self._mingw_install_dir}', - f'-fstack-protector-strong', ] return cflags