Mercurial > hg > sonic-visualiser
comparison configure @ 2104:5ffcb4e10e1b
Experiment with LTO on gcc build
author | Chris Cannam |
---|---|
date | Thu, 15 Nov 2018 13:05:20 +0000 |
parents | 810a0b8f5472 |
children | f474b3931217 |
comparison
equal
deleted
inserted
replaced
2103:d84a0783ce11 | 2104:5ffcb4e10e1b |
---|---|
623 ac_subst_vars='LTLIBOBJS | 623 ac_subst_vars='LTLIBOBJS |
624 LIBOBJS | 624 LIBOBJS |
625 QMAKE_CONFIG | 625 QMAKE_CONFIG |
626 HAVES | 626 HAVES |
627 CXXSTANDARD | 627 CXXSTANDARD |
628 CXXFLAGS_MINIMAL | |
629 CUT | 628 CUT |
630 SHA1SUM | 629 SHA1SUM |
631 MAKEDEPEND | 630 MAKEDEPEND |
632 XARGS | 631 XARGS |
633 PERL | 632 PERL |
4411 | 4410 |
4412 | 4411 |
4413 | 4412 |
4414 SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING" | 4413 SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING" |
4415 SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING -DNO_HIT_COUNTS" | 4414 SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING -DNO_HIT_COUNTS" |
4416 SV_DEFINES_MINIMAL="$SV_DEFINES_RELEASE" | |
4417 | 4415 |
4418 # Now we have: USER_CXXFLAGS contains any flags the user set | 4416 # Now we have: USER_CXXFLAGS contains any flags the user set |
4419 # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought | 4417 # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought |
4420 # we should use. If we have GCC, we override the latter but then | 4418 # we should use. If we have GCC, we override the latter but then |
4421 # allow ourselves to be overridden (later) by the former | 4419 # allow ourselves to be overridden (later) by the former |
4422 | 4420 |
4423 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" | 4421 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" |
4422 OPTFLAGS_DEBUG="-O2" | |
4423 LDFLAGS_DEBUG="" | |
4424 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" | 4424 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" |
4425 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" | 4425 OPTFLAGS_RELEASE="-O2" |
4426 LDFLAGS_RELEASE="" | |
4426 CXXSTANDARD=c++14 | 4427 CXXSTANDARD=c++14 |
4427 | 4428 |
4428 if test "x$GCC" = "xyes"; then | 4429 if test "x$GCC" = "xyes"; then |
4429 CXXFLAGS_ANY="-fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe" | 4430 CXXFLAGS_ANY="-fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe" |
4430 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -O2 -Werror" | 4431 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror" |
4431 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0 -O3 -ffast-math" | 4432 OPTFLAGS_DEBUG="-O2" |
4432 CXXFLAGS_MINIMAL="$CXXFLAGS_ANY -g0 -O0" | 4433 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0" |
4434 LDFLAGS_RELEASE="-fuse-linker-plugin" | |
4435 OPTFLAGS_RELEASE="-O3 -ffast-math -flto" | |
4433 LIBS_DEBUG="$LIBS" | 4436 LIBS_DEBUG="$LIBS" |
4434 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__--std=$CXXSTANDARD" | $as_tr_sh` | 4437 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__--std=$CXXSTANDARD" | $as_tr_sh` |
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts --std=$CXXSTANDARD" >&5 | 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts --std=$CXXSTANDARD" >&5 |
4436 $as_echo_n "checking whether C++ compiler accepts --std=$CXXSTANDARD... " >&6; } | 4439 $as_echo_n "checking whether C++ compiler accepts --std=$CXXSTANDARD... " >&6; } |
4437 if eval \${$as_CACHEVAR+:} false; then : | 4440 if eval \${$as_CACHEVAR+:} false; then : |
4470 CXXSTANDARD=c++11 | 4473 CXXSTANDARD=c++11 |
4471 fi | 4474 fi |
4472 | 4475 |
4473 fi | 4476 fi |
4474 | 4477 |
4475 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" | 4478 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE $OPTFLAGS_RELEASE" |
4479 LDFLAGS_BUILD="$LDFLAGS_RELEASE $OPTFLAGS_RELEASE" | |
4476 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" | 4480 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" |
4477 | 4481 |
4478 QMAKE_CONFIG="release" | 4482 QMAKE_CONFIG="release" |
4479 | 4483 |
4480 # Check whether --enable-debug was given. | 4484 # Check whether --enable-debug was given. |
4481 if test "${enable_debug+set}" = set; then : | 4485 if test "${enable_debug+set}" = set; then : |
4482 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5 | 4486 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5 |
4483 $as_echo "$as_me: enabling debug build" >&6;} | 4487 $as_echo "$as_me: enabling debug build" >&6;} |
4484 QMAKE_CONFIG="debug" | 4488 QMAKE_CONFIG="debug" |
4485 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" | 4489 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG $OPTFLAGS_DEBUG" |
4490 LDFLAGS_BUILD="$LDFLAGS_DEBUG" | |
4486 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG" | 4491 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG" |
4487 LIBS="$LIBS_DEBUG" | 4492 LIBS="$LIBS_DEBUG" |
4488 fi | 4493 fi |
4489 | 4494 |
4490 | 4495 |
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5 | 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5 |
4493 $as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;} | 4498 $as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;} |
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5 | 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5 |
4495 $as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;} | 4500 $as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;} |
4496 CXXFLAGS_BUILD="$USER_CXXFLAGS" | 4501 CXXFLAGS_BUILD="$USER_CXXFLAGS" |
4497 CXXFLAGS_MINIMAL="$USER_CXXFLAGS" | 4502 LDFLAGS_BUILD="" |
4498 fi | 4503 fi |
4499 | 4504 |
4500 CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD" | 4505 CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD" |
4506 LDFLAGS="$LDFLAGS_BUILD" | |
4501 | 4507 |
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 4509 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4504 inttypes.h stdint.h unistd.h | 4510 inttypes.h stdint.h unistd.h |
4505 do : | 4511 do : |
7370 fi | 7376 fi |
7371 | 7377 |
7372 fi | 7378 fi |
7373 fi | 7379 fi |
7374 fi | 7380 fi |
7375 | |
7376 | 7381 |
7377 | 7382 |
7378 | 7383 |
7379 | 7384 |
7380 | 7385 |