blob: 00b7a5bcdc3158e5f8508db032c5e867234bb7ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff --git i/lib/Driver/ToolChains.cpp w/lib/Driver/ToolChains.cpp
index 1e43b6c..ce2de18 100644
--- i/lib/Driver/ToolChains.cpp
+++ w/lib/Driver/ToolChains.cpp
@@ -2944,6 +2944,11 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
Distro Distro = DetectDistro(Arch);
+ if (Distro == AlpineLinux) {
+ ExtraOpts.push_back("-z");
+ ExtraOpts.push_back("now");
+ }
+
if (IsOpenSUSE(Distro) || IsUbuntu(Distro) || Distro == AlpineLinux) {
ExtraOpts.push_back("-z");
ExtraOpts.push_back("relro");
|