aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/clang-0004-alpine-use-z-relro.patch
blob: 52a47b03022ffd309f8c7554c3e0b485ec1aa4dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 620a44a..006915c 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -2939,7 +2939,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)

   Distro Distro = DetectDistro(Arch);

-  if (IsOpenSUSE(Distro) || IsUbuntu(Distro)) {
+  if (IsOpenSUSE(Distro) || IsUbuntu(Distro) || Distro == AlpineLinux) {
     ExtraOpts.push_back("-z");
     ExtraOpts.push_back("relro");
   }
--
2.1.4