Ticket #12015: configure-optimizations.patch

File configure-optimizations.patch, 1.0 KB (added by bryan@…, 12 years ago)

Patch fixing the issue

  • mythtv/configure

    diff --git a/mythtv/configure b/mythtv/configure
    index 4aa8727..7583aae 100755
    a b fi  
    53215321
    53225322check_optflags(){
    53235323    check_cflags "$@"
     5324    check_cxxflags "$@"
    53245325    enabled lto && check_ldflags "$@"
    53255326}
    53265327
    check_optflags(){  
    53285329if enabled lto; then
    53295330    test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker"
    53305331    check_cflags  -flto
     5332    check_cxxflags -flto
    53315333    check_ldflags -flto $cpuflags
    53325334fi
    53335335
    fi  
    55695571
    55705572if [ -n "$optflags" ]; then
    55715573    add_cflags $optflags
     5574    add_cxxflags $optflags
    55725575elif enabled small; then
    55735576    add_cflags $cflags_size
     5577    add_cxxflags $cflags_size
    55745578elif enabled optimizations; then
    55755579    add_cflags $cflags_speed
     5580    add_cxxflags $cflags_speed
    55765581else
    55775582    add_cflags $cflags_noopt
     5583    add_cxxflags $cflags_noopt
    55785584fi
    55795585check_cflags -fno-math-errno
     5586check_cxxflags -fno-math-errno
    55805587check_cflags -fno-signed-zeros
     5588check_cxxflags -fno-signed-zeros
     5589
    55815590check_cc -mno-red-zone <<EOF && noredzone_flags="-mno-red-zone"
    55825591int x;
    55835592EOF