From 2b0bc30e8d000444fad2c4cbfaf7c2b18a1214a8 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 12 Mar 2009 15:49:09 +0100
Subject: [PATCH] Fixes: qworkbench.pri: make the gnu linker bail out on
 non-selfcontained libraries.

---
 src/qworkbench.pri | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/qworkbench.pri b/src/qworkbench.pri
index 8116de86002..deda9ae21f0 100644
--- a/src/qworkbench.pri
+++ b/src/qworkbench.pri
@@ -54,3 +54,9 @@ unix {
     RCC_DIR = $${OUT_PWD}/.rcc/
     UI_DIR = $${OUT_PWD}/.uic/
 }
+
+linux-g++-* {
+    # Bail out on non-selfcontained libraries. Just a security measure
+    # to prevent checking in code that does not compile on other platforms.
+    QMAKE_LFLAGS += -Wl,--allow-shlib-undefined -Wl,--no-undefined
+}
-- 
GitLab