mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
26 lines
823 B
Diff
26 lines
823 B
Diff
From 00ca60386046258f55b11313e9e63e6551698ee0 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
Date: Sun, 16 Apr 2017 16:49:00 +0100
|
|
Subject: [PATCH 2/7] Use "-z relro" on Alpine Linux
|
|
|
|
---
|
|
lib/Driver/ToolChains/Linux.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/Driver/ToolChains/Linux.cpp b/lib/Driver/ToolChains/Linux.cpp
|
|
index 08a27fa..9dbf9bd 100644
|
|
--- 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()) {
|
|
+ if (Distro.IsOpenSUSE() || Distro.IsUbuntu() || Distro.IsAlpineLinux()) {
|
|
ExtraOpts.push_back("-z");
|
|
ExtraOpts.push_back("relro");
|
|
}
|
|
--
|
|
2.14.1
|
|
|