2011-01-12 Maciej Stachowiak <mjs@apple.com>
[WebKit.git] / common.pri
index 91a7785ddfaace310d3f981155a1a57acbda6858..c9843bbc786721680ca9ba6937d8eb566fff1fbf 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
+}
+}
+