2010-11-30 Patrick Gansterer <paroga@webkit.org>
[WebKit-https.git] / common.pri
index 91a7785..c9843bb 100644 (file)
@@ -3,3 +3,12 @@
 contains(JAVASCRIPTCORE_JIT,yes): DEFINES+=ENABLE_JIT=1
 contains(JAVASCRIPTCORE_JIT,no): DEFINES+=ENABLE_JIT=0
 
+linux-g++ {
+!isEmpty($$(SBOX_DPKG_INST_ARCH)):exists(/usr/bin/ld.gold) {
+    message(Using gold linker)
+    QMAKE_CFLAGS+=-fuse-ld=gold
+    QMAKE_CXXFLAGS+=-fuse-ld=gold
+    QMAKE_LFLAGS+=-fuse-ld=gold
+}
+}
+