aboutsummaryrefslogtreecommitdiff
blob: 653c933e212e2b43da627ad5e1922e937e449ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/lib/Driver/ToolChains/Linux.cpp
+++ b/lib/Driver/ToolChains/Linux.cpp
@@ -210,7 +210,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
 
   Distro Distro(D.getVFS());
 
-  if (Distro.IsOpenSUSE() || Distro.IsUbuntu() || Distro.IsAlpineLinux()) {
+  if (Distro.IsOpenSUSE() || Distro.IsUbuntu() || Distro.IsAlpineLinux() || Distro.IsGentooLinux()) {
     ExtraOpts.push_back("-z");
     ExtraOpts.push_back("relro");
   }