diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-07 15:21:48 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-07 15:21:48 -0600 |
commit | 7442499990b44130ad9de911808161177b214322 (patch) | |
tree | e0f9588b2552682e1176322fe19b6d15b67e9c47 /system/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch | |
parent | 00f714f7a538159c8a821e1872c1d39d75cbf144 (diff) | |
download | packages-7442499990b44130ad9de911808161177b214322.tar.gz packages-7442499990b44130ad9de911808161177b214322.tar.bz2 packages-7442499990b44130ad9de911808161177b214322.tar.xz packages-7442499990b44130ad9de911808161177b214322.zip |
system/clang: yay, a non-GCC compiler
Diffstat (limited to 'system/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch')
-rw-r--r-- | system/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/system/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch b/system/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch new file mode 100644 index 000000000..90de948f6 --- /dev/null +++ b/system/clang/clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch @@ -0,0 +1,19 @@ +From: Natanael Copa <ncopa@alpinelinux.org> +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Sun, 16 Apr 2017 16:49:00 +0100 +Subject: [PATCH] Link with -z now by default for Alpine Linux + +--- a/lib/Driver/ToolChains.cpp ++++ b/lib/Driver/ToolChains.cpp +@@ -4116,6 +4116,11 @@ + + Distro Distro(D.getVFS()); + ++ if (Distro.IsAlpineLinux()) { ++ ExtraOpts.push_back("-z"); ++ ExtraOpts.push_back("now"); ++ } ++ + if (Distro.IsOpenSUSE() || Distro.IsUbuntu() || Distro.IsAlpineLinux()) { + ExtraOpts.push_back("-z"); + ExtraOpts.push_back("relro"); |