aboutsummaryrefslogtreecommitdiffstats
path: root/main/clang/0003-Use-hash-style-gnu-for-Alpine-Linux.patch
diff options
context:
space:
mode:
authorxentec <xentec@aix0.eu>2017-10-23 18:27:32 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-11-14 18:42:44 +0100
commit60c32c79a11ee7715f20aeebd381299120c43eb0 (patch)
tree22de0e87cb31a859622fce93eec1afca6440a348 /main/clang/0003-Use-hash-style-gnu-for-Alpine-Linux.patch
parentb4767fa4037857bb3393650e351e69d16a5d7e56 (diff)
downloadaports-60c32c79a11ee7715f20aeebd381299120c43eb0.tar.bz2
aports-60c32c79a11ee7715f20aeebd381299120c43eb0.tar.xz
main/clang: upgrade to 5.0.0
Diffstat (limited to 'main/clang/0003-Use-hash-style-gnu-for-Alpine-Linux.patch')
-rw-r--r--main/clang/0003-Use-hash-style-gnu-for-Alpine-Linux.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/clang/0003-Use-hash-style-gnu-for-Alpine-Linux.patch b/main/clang/0003-Use-hash-style-gnu-for-Alpine-Linux.patch
new file mode 100644
index 0000000000..542fefcd20
--- /dev/null
+++ b/main/clang/0003-Use-hash-style-gnu-for-Alpine-Linux.patch
@@ -0,0 +1,25 @@
+From 54f4c1daac9e4489b48c477758217cd01c6c8f0a Mon Sep 17 00:00:00 2001
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Sun, 16 Apr 2017 16:49:00 +0100
+Subject: [PATCH 3/7] Use --hash-style=gnu for 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 9dbf9bd..1201df6 100644
+--- a/lib/Driver/ToolChains/Linux.cpp
++++ b/lib/Driver/ToolChains/Linux.cpp
+@@ -232,7 +232,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
+ // Android loader does not support .gnu.hash.
+ // Hexagon linker/loader does not support .gnu.hash
+ if (!IsMips && !IsAndroid && !IsHexagon) {
+- if (Distro.IsRedhat() || Distro.IsOpenSUSE() ||
++ if (Distro.IsRedhat() || Distro.IsOpenSUSE() || Distro.IsAlpineLinux() ||
+ (Distro.IsUbuntu() && Distro >= Distro::UbuntuMaverick))
+ ExtraOpts.push_back("--hash-style=gnu");
+
+--
+2.14.1
+