Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo Shields <joshield@microsoft.com>2018-04-27 18:03:32 +0300
committerJo Shields <joshield@microsoft.com>2018-04-27 18:03:32 +0300
commitbec38ae24326f4543240ed9aa4d54ebdc0751538 (patch)
treefc0c48b2783797b468c4c8a40ef8c446d22aa5e6 /configure.ac
parent8d1c93e563b98f83f8b7e3596eef7afd01422ead (diff)
Fix building with clang on PowerPC
Clang on PPC doesn't support `-mminimal-toc` and fails with an unknown flag due to our default CFLAGS. Try to detect Clang, and avoid that flag.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2701a5a4d32..ac59385fe59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3528,7 +3528,9 @@ case "$host" in
if test "x$ac_cv_sizeof_void_p" = "x8"; then
TARGET=POWERPC64;
CPPFLAGS="$CPPFLAGS -D__mono_ppc__ -D__mono_ppc64__"
- CFLAGS="$CFLAGS -mminimal-toc"
+ if ! (echo $CC | grep -q -- 'clang'); then
+ CFLAGS="$CFLAGS -mminimal-toc"
+ fi
else
TARGET=POWERPC;
CPPFLAGS="$CPPFLAGS -D__mono_ppc__"