diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-11-28 15:47:03 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-11-29 00:39:01 +0100 |
| commit | 492763fec2bb4fa9c0c52b906feda0a2a96d866c (patch) | |
| tree | 60e3e7dfd4547a3b814ed8c69bfb14e1e8b9a644 /configure.ac | |
| parent | 47cada7c3a0d55bcc071f124e3bc0ea403cfff64 (diff) | |
| download | PROJ-492763fec2bb4fa9c0c52b906feda0a2a96d866c.tar.gz PROJ-492763fec2bb4fa9c0c52b906feda0a2a96d866c.zip | |
Build: change back link-time-optimization default to off
I've found that if building PROJ with lto, but GDAL without lto, exceptions
thrown in PROJ are not properly captured by try {} blocks in PROJ C API,
and unexpectedly go back up to GDAL.
Might be a defect of the particular compiler I use (gcc 5.4 Ubuntu 16.04)
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 31cb2a8a..25675d6a 100644 --- a/configure.ac +++ b/configure.ac @@ -151,10 +151,10 @@ AC_MSG_CHECKING([to enable LTO (link time optimization) build]) AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], - [enable LTO(link time optimization) (enabled by default)])) + [enable LTO(link time optimization) (disabled by default)])) FLTO_FLAG="" -if test "x$enable_lto" = "xyes" -o "x$enable_lto" = "x"; then +if test "x$enable_lto" = "xyes"; then AC_LANG_PUSH([C++]) AX_CHECK_COMPILE_FLAG([-flto], [FLTO_FLAG="-flto"],,[$ERROR_ON_UNKNOWN_OPTIONS]) if test "$FLTO_FLAG" != ""; then |
