summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/common.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-12-07 12:38:24 -0800
committerKhem Raj <raj.khem@gmail.com>2018-12-09 22:07:07 -0800
commitf87d761db89a41a66cbc2507ebe651f4a995cd1a (patch)
tree22388d8c3269500d139d49f88a9760728f4c8ad7 /recipes-devtools/clang/common.inc
parent355375fb592b31dc9e1d36d7a6f80a4481a3cd88 (diff)
downloadmeta-clang-f87d761db89a41a66cbc2507ebe651f4a995cd1a.tar.gz
clang: Default to ssp and pie codegen when GCCPIE is set
This ensures that clang generates PIE+SSP code by default, this makes sure that packages which do not make this distinction compile properly as passing -fPIE and -pie could be not working well for their build systems Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/common.inc')
-rw-r--r--recipes-devtools/clang/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc
index 92ac4ab..74bccf4 100644
--- a/recipes-devtools/clang/common.inc
+++ b/recipes-devtools/clang/common.inc
@@ -21,7 +21,7 @@ CLANGPATCHES = "\
21 file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=tools/clang \ 21 file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=tools/clang \
22 file://0008-clang-scan-view-needs-python-2.x.patch;patchdir=tools/clang \ 22 file://0008-clang-scan-view-needs-python-2.x.patch;patchdir=tools/clang \
23" 23"
24#CLANGPATCHES += "${@'file://0007-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" 24CLANGPATCHES += "${@'file://0009-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}"
25 25
26# libcxxabi patches 26# libcxxabi patches
27LIBCXXABIPATCHES ="\ 27LIBCXXABIPATCHES ="\