diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-01-19 19:04:09 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-01-19 19:33:02 +0000 |
commit | 58542697c14bae5c8d81bb2c1cc60dd015cdc0c6 (patch) | |
tree | 98fd9e32a12c7af8e277cdb217abd066929d5ed6 /patches/clang_host/clang-0002-Use-z-relro-on-Alpine-Linux.patch | |
parent | 10f4bdb5d0146d5f51bd4e0d568f3861f45e99a0 (diff) | |
download | midipix_build-58542697c14bae5c8d81bb2c1cc60dd015cdc0c6.tar.bz2 midipix_build-58542697c14bae5c8d81bb2c1cc60dd015cdc0c6.tar.xz |
{clang,llvm}_host: adds clang v3.8.1 and llvm v3.8.1 (via Redfoxmoon.)
Diffstat (limited to 'patches/clang_host/clang-0002-Use-z-relro-on-Alpine-Linux.patch')
-rw-r--r-- | patches/clang_host/clang-0002-Use-z-relro-on-Alpine-Linux.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/clang_host/clang-0002-Use-z-relro-on-Alpine-Linux.patch b/patches/clang_host/clang-0002-Use-z-relro-on-Alpine-Linux.patch new file mode 100644 index 00000000..090ec3d5 --- /dev/null +++ b/patches/clang_host/clang-0002-Use-z-relro-on-Alpine-Linux.patch @@ -0,0 +1,25 @@ +From 1898d32d22fddf3ba6c88addbd2af0159600b506 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 18 Feb 2016 17:41:23 +0100 +Subject: [PATCH 2/7] Use "-z relro" on Alpine Linux + +--- + lib/Driver/ToolChains.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp +index 70b53bd..46326f0 100644 +--- a/lib/Driver/ToolChains.cpp ++++ b/lib/Driver/ToolChains.cpp +@@ -3667,7 +3667,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) + + Distro Distro = DetectDistro(D, Arch); + +- if (IsOpenSUSE(Distro) || IsUbuntu(Distro)) { ++ if (IsOpenSUSE(Distro) || IsUbuntu(Distro) || Distro == AlpineLinux) { + ExtraOpts.push_back("-z"); + ExtraOpts.push_back("relro"); + } +-- +2.7.3 + |