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>2015-06-05 14:02:39 +0300
committerMikkel Krautz <mikkel@krautz.dk>2015-06-05 14:03:05 +0300
commit859da4dabec070959b5c06f8d32512990d7ec9c2 (patch)
tree2c50b5f674b58f77f36f0c59ca1ff4dccdce1983 /overlay_gl
parent7e4639c580534a013800fca17d8deb34aaab52cb (diff)
Do not link the Linux overlay with '-z now'.
Linking the overlay library with '-z now' requires all target processes to have libGL symbols in them at load time. If it doesn't, the program will not start at all. Instead, explicitly use '-z lazy' to defer libGL symbol resolution until first use, which is never for non-libGL users.
Diffstat (limited to 'overlay_gl')
-rw-r--r--overlay_gl/overlay_gl.pro4
1 files changed, 4 insertions, 0 deletions
diff --git a/overlay_gl/overlay_gl.pro b/overlay_gl/overlay_gl.pro
index fabe481b8..9651d8e62 100644
--- a/overlay_gl/overlay_gl.pro
+++ b/overlay_gl/overlay_gl.pro
@@ -19,6 +19,10 @@ unix:!macx {
LIBS *= -lrt -ldl
QMAKE_CFLAGS *= -fvisibility=hidden $(CFLAGS_ADD)
QMAKE_LFLAGS -= -Wl,--no-undefined
+
+ QMAKE_LFLAGS -= -Wl,-z,now
+ QMAKE_LFLAGS += -Wl,-z,lazy
+
QMAKE_LFLAGS *= $(LFLAGS_ADD)
equals(QMAKE_LINK,g++) {
QMAKE_LINK = gcc