aboutsummaryrefslogtreecommitdiffstats
path: root/main/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-18 13:22:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-22 10:21:07 +0000
commitf587789bd44d4fe0f05c2d2802a1d546896fca70 (patch)
treeae9ffeb64aebae70744a09d6b99c2e7c905e724c /main/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch
parent6025d33a147333d0ad8fcfbd2b5d84fee00de11b (diff)
downloadaports-f587789bd44d4fe0f05c2d2802a1d546896fca70.tar.bz2
aports-f587789bd44d4fe0f05c2d2802a1d546896fca70.tar.xz
main/clang: upgrade to 3.8.0 and move out from llvm
Diffstat (limited to 'main/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch')
-rw-r--r--main/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch b/main/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch
new file mode 100644
index 0000000000..a7ad2d8c3a
--- /dev/null
+++ b/main/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch
@@ -0,0 +1,28 @@
+From e089ab63916eada060fdfffbf7422c9b20bafe84 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 23 Feb 2016 10:08:17 +0000
+Subject: [PATCH 6/7] Link with -z now by default for Alpine Linux
+
+---
+ lib/Driver/ToolChains.cpp | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
+index 82449bf..1a8ebf5 100644
+--- a/lib/Driver/ToolChains.cpp
++++ b/lib/Driver/ToolChains.cpp
+@@ -3671,6 +3671,11 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
+
+ Distro Distro = DetectDistro(D, 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");
+--
+2.7.3
+