aboutsummaryrefslogtreecommitdiff
path: root/src/projections/tmerc.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-06 19:12:25 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-04-06 19:26:40 +0200
commit5396b72e22602c2bcbf3d3d78f3f259bd7eef384 (patch)
tree7ce50233ea36498be1da3146492ccef3685d13a5 /src/projections/tmerc.cpp
parentbaf9b82254948fd7209a6ee54b1326bce097d0e9 (diff)
downloadPROJ-5396b72e22602c2bcbf3d3d78f3f259bd7eef384.tar.gz
PROJ-5396b72e22602c2bcbf3d3d78f3f259bd7eef384.zip
autoconf build: fix build on Alpine 3.11 where __attribute__((target_clones("fma","default"))) doesn't work for some reason
Diffstat (limited to 'src/projections/tmerc.cpp')
-rw-r--r--src/projections/tmerc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/projections/tmerc.cpp b/src/projections/tmerc.cpp
index 754fe53f..91dad135 100644
--- a/src/projections/tmerc.cpp
+++ b/src/projections/tmerc.cpp
@@ -61,7 +61,7 @@ struct pj_opaque_exact {
// mechanism for that, where the compiler builds a default version, and one that
// uses FMA. And at runtimes it figures out automatically which version can be used
// by the current CPU. This allows to create general purpose binaries.
-#if defined(__GNUC__) && __GNUC__ >= 6 && defined(__x86_64__) && !defined(__FMA__)
+#if defined(TARGET_CLONES_FMA_ALLOWED) && defined(__GNUC__) && __GNUC__ >= 6 && defined(__x86_64__) && !defined(__FMA__)
#define BUILD_FMA_OPTIMIZED_VERSION
#endif