~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Tools/qmake/mkspecs/features/unix/default_post.prf

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -------------------------------------------------------------------
 
2
# Unix specific defaults
 
3
#
 
4
# See 'Tools/qmake/README' for an overview of the build system
 
5
# -------------------------------------------------------------------
 
6
 
 
7
# Use SSE2 floating point math on 32 bit instead of the default
 
8
# 387 to make layout test results same on 32 and on 64 bit builds.
 
9
# See https://bugs.webkit.org/show_bug.cgi?id=52810#c39 for details.
 
10
 
 
11
# Disable if CXXFLAGS have been set to something else.
 
12
!no_sse2:contains(QMAKE_CXXFLAGS, -march): CONFIG += no_sse2
 
13
 
 
14
!no_sse2:linux-g++*:isEqual(QT_ARCH,i386) {
 
15
    QMAKE_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse -mtune=generic
 
16
    QMAKE_CXXFLAGS += -march=pentium4 -msse2 -mfpmath=sse -mtune=generic
 
17
}
 
18
 
 
19
linux-*g++* {
 
20
    !production_build {
 
21
        # Treat warnings as errors on x86/Linux/GCC
 
22
        isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror
 
23
    }
 
24
    greaterThan(QT_GCC_MAJOR_VERSION, 3):greaterThan(QT_GCC_MINOR_VERSION, 5) {
 
25
        !contains(QMAKE_CXXFLAGS, -std=(c|gnu)\\+\\+(0x|11)) {
 
26
            # We need to deactivate those warnings because some names conflicts with upcoming c++0x types (e.g.nullptr).
 
27
            QMAKE_CXXFLAGS_WARN_ON += -Wno-c++0x-compat
 
28
            QMAKE_CXXFLAGS += -Wno-c++0x-compat
 
29
        }
 
30
    }
 
31
}
 
32
 
 
33
# Don't warn about OVERRIDE and FINAL, since they are feature-checked anyways
 
34
*clang:!contains(QMAKE_CXXFLAGS, -std=c++11) {
 
35
    QMAKE_CXXFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions
 
36
    QMAKE_OBJECTIVE_CFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions
 
37
}
 
38
 
 
39
contains(TEMPLATE, app): CONFIG += rpath
 
40
 
 
41
isEqual(QT_ARCH,i386):CONFIG(debug, debug|release) {
 
42
  # Make ld not cache the symbol tables of input files in memory to avoid memory exhaustion during the linking phase.
 
43
  config_gnuld: QMAKE_LFLAGS += -Wl,--no-keep-memory
 
44
}
 
45
 
 
46
load(default_post)