2010-11-16 Andreas Kling <kling@webkit.org>
[WebKit.git] / common.pri
index 91a7785ddfaace310d3f981155a1a57acbda6858..aa6b8e77b013d83d70ef4666f0ec36182fe9b330 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
+}
+}
+