aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/clang-0004-alpine-use-z-relro.patch
diff options
context:
space:
mode:
authorTravis Tilley <ttilley@gmail.com>2015-05-21 12:41:30 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-22 13:09:01 +0000
commit81d1b43c5af39e14cb91232c4afcb7839b96f5a1 (patch)
tree01d279a6a2c6859074d4b3045f851c2e36de13db /main/llvm/clang-0004-alpine-use-z-relro.patch
parent386a214b3a1b7586e4d37b94ae84d6830e159f52 (diff)
downloadaports-81d1b43c5af39e14cb91232c4afcb7839b96f5a1.tar.bz2
aports-81d1b43c5af39e14cb91232c4afcb7839b96f5a1.tar.xz
main/llvm: update patchset, switch to cmake, perform two-stage build with a minimal bootstrap compile of clang, add clang extras, update package list to split out clang documentation
Diffstat (limited to 'main/llvm/clang-0004-alpine-use-z-relro.patch')
-rw-r--r--main/llvm/clang-0004-alpine-use-z-relro.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/llvm/clang-0004-alpine-use-z-relro.patch b/main/llvm/clang-0004-alpine-use-z-relro.patch
new file mode 100644
index 0000000000..c7fe94bed1
--- /dev/null
+++ b/main/llvm/clang-0004-alpine-use-z-relro.patch
@@ -0,0 +1,25 @@
+From 383827121a633f2cf93535487e991efd6e4ff577 Mon Sep 17 00:00:00 2001
+From: Travis Tilley <ttilley@gmail.com>
+Date: Tue, 28 Apr 2015 20:25:51 -0400
+Subject: [PATCH 4/8] alpine-use-z-relro.patch
+
+---
+ 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 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
+