Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2009-12-20 15:44:52 +0300
committerMikkel Krautz <mikkel@krautz.dk>2009-12-20 15:44:52 +0300
commit04725ad5b24b048c3ec23172abfd8f66645a6719 (patch)
tree705409a6a36fc8ab4f9e8282ac0e43d66b9e9ac7 /compiler.pri
parent75fbf020f0df062ae9188a79b7d8415f647f2a7c (diff)
Attempt at better OSX 10.4 support.
Diffstat (limited to 'compiler.pri')
-rw-r--r--compiler.pri11
1 files changed, 10 insertions, 1 deletions
diff --git a/compiler.pri b/compiler.pri
index fa3941636..436790215 100644
--- a/compiler.pri
+++ b/compiler.pri
@@ -122,7 +122,7 @@ macx {
INCLUDEPATH *= /opt/mumble-1.2/include
LIBPATH *= /opt/mumble-1.2/lib
- QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
+ QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
XCODE_PATH=$$system(xcode-select -print-path)
QMAKE_MAC_SDK = $${XCODE_PATH}/SDKs/MacOSX10.5.sdk
@@ -134,6 +134,15 @@ macx {
QMAKE_CXXFLAGS += -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2
QMAKE_LFLAGS += -Wl,-dead_strip -framework Cocoa -framework Carbon
+ CONFIG(no-cocoa) {
+ # The no-cocoa option basically means that we should build without depending on
+ # a Cocoa build of Qt. However, for the most part, the reason we do this is to
+ # run on older versions of Mac OS X. We 'abuse' that to disable features we don't
+ # want enabled on Mac OS X 10.4.
+ QMAKE_CFLAGS -= -fno-stack-protector -fno-stack-protector-all
+ QMAKE_CXXFLAGS -= -fno-stack-protector -fno-stack-protector-all
+ }
+
CONFIG(symbols) {
QMAKE_CFLAGS *= -gfull -gdwarf-2
QMAKE_CXXFLAGS *= -gfull -gdwarf-2