Moritz Bunkus
ce191d097b
configure: handle --disable-ubsan
and --disable-addrsan
correctly
...
Fixes #2199 .
2018-01-16 09:09:25 +01:00
Moritz Bunkus
cd155df59b
configure rework compiler type & version check
2017-11-18 10:46:36 +01:00
Moritz Bunkus
4d5a052472
configure: use -O3
with mingw 7.2.0
...
Older versions suffered from issues such as segmentation faults on
startup with optimization levels higher than `-O2` or with
`-fipa-icf`. v7.2.0 is OK, though.
2017-11-17 22:21:40 +01:00
Moritz Bunkus
989e5df1eb
configure: use -O3
with clang++ 3.8.0 or newer
...
Older versions suffered from excessive memory usage with optimization
levels higher than `-O1`:
%https://bugs.llvm.org/show_bug.cgi?id=11962
v3.8.0 is known to be OK, though.
2017-11-17 21:57:32 +01:00
Moritz Bunkus
de093c2913
configure: get real version for clang(++)
...
`clang++ -dumpversion` always outputs 4.2.1 as it was designed to be
compatible with `g++` in that version. So parse `clang++ --version`
for `clang++` instead.
2017-11-17 21:49:36 +01:00
Moritz Bunkus
504209ce71
configure: options for enabling address/undefined behavior sanitizers
...
The `Rakefile` has supported both for a while now, but the values had
to be set manually in `build-config`.
2017-07-15 16:59:58 +02:00
Moritz Bunkus
cfe6e85eb6
build system: don't use -fipa-icf optimization on i686 mingw target
...
The result are segfaulting executables.
2016-12-22 18:20:25 +01:00
Moritz Bunkus
d0193dc354
build system: only use -O2 with 32bit mingw cross compilers >= 5.1.0
...
MXE has recently reverted to 4.9.x, and that line still produces fine
binaries with -O3.
2015-11-17 22:16:22 +01:00
Moritz Bunkus
3a8acead8d
build system: only use -O2 with 32bit mingw cross compilers
...
Recent versions of the MXE mingw cross compilers produce stack-smashing
binaries with -O3 for some of the tools.
2015-10-22 11:36:42 +02:00
Moritz Bunkus
b41bd6fd9d
configure: be more explicit about which optimizations are enabled
2015-02-12 13:34:38 +01:00
Moritz Bunkus
0978c28c55
configure: output more information about enabled/disabled features
2013-01-15 20:47:09 +01:00
Moritz Bunkus
a947a859ce
Don't build with full optimization with clang
...
Due to bug 11962 in llvm/clang.
2012-09-02 13:25:57 +02:00
Moritz Bunkus
6f6715324f
Disable optimization flags if debugging is enabled and --{en,dis}able-debug has not been specified
2010-08-21 13:53:20 +02:00
Moritz Bunkus
e97cc45b64
Test on the wrong variable for --enable-profiling
2010-08-16 23:51:52 +02:00
Moritz Bunkus
97ab95211f
Let the user disable optimizations without having debugging enabled
2010-08-10 22:27:12 +02:00
Moritz Bunkus
29494fb7f6
Honor "--disable-debug"
2010-06-01 14:23:53 +02:00
Moritz Bunkus
6f14f39b51
Removed debug code
2010-04-10 09:06:59 +02:00
Moritz Bunkus
9b4e496e1e
Option for enabling optimization even with debugging info
2010-04-06 14:46:19 +02:00
Moritz Bunkus
fed3d09de4
Split configure.in in several smaller files.
2008-08-27 20:38:55 +00:00