diff --git a/Installation/install_cgal b/Installation/install_cgal index 0a6cfa9e19b..1a02638a407 100755 --- a/Installation/install_cgal +++ b/Installation/install_cgal @@ -1083,6 +1083,11 @@ set_compiler_flags() *) ADDITIONAL_CXXFLAGS="${ADDITIONAL_CXXFLAGS} -frounding-math";; # g++-4.x and after: we need -frounding-math to avoid FPU rounding mode optimisations esac + case `compiler_version` in + # adjust to future versions. flag will be removed some day, anyhow + 4.[12345].*) + ADDITIONAL_CXXFLAGS="${ADDITIONAL_CXXFLAGS} -ffriend-injection";; + esac ;; esac }