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>2016-11-27 03:13:57 +0300
committerMikkel Krautz <mikkel@krautz.dk>2016-11-27 03:13:57 +0300
commit5cffbf3bd3e1f2db99072a26ad007e4c0a6e09eb (patch)
tree52c352b8a25029310708eb12868e41695630589c /overlay_gl
parentcb1732b69e54ee4bdda91d188d89b918b612b2ff (diff)
Always prepend 'release' or 'debug' dirs when adding to QMAKE_LIBDIR.
This commit changes various pri and pro files to always prepend the global build output directory (which can be either 'release' or 'debug', depending on the current build configuration). Otherwise, if a library that we build ourselves, such as -lspeex in CONFIG+=bundled-speex, is also available in one of the other lib dirs, we can't be sure that the one in our build output directory will be used. This is a problem on FreeBSD, where we add /usr/local/lib to the QMAKE_LIBDIR in compiler.pri. That directory might contain its own -lspeex. With this change, we now prefer libraries in our build output directory to system libraries.
Diffstat (limited to 'overlay_gl')
-rw-r--r--overlay_gl/overlay_gl.pro4
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay_gl/overlay_gl.pro b/overlay_gl/overlay_gl.pro
index b871774d7..9d1d951ac 100644
--- a/overlay_gl/overlay_gl.pro
+++ b/overlay_gl/overlay_gl.pro
@@ -58,12 +58,12 @@ macx {
}
CONFIG(debug, debug|release) {
- QMAKE_LIBDIR *= ../debug$(DESTDIR_ADD)
+ QMAKE_LIBDIR = ../debug$(DESTDIR_ADD) $$QMAKE_LIBDIR
DESTDIR = ../debug$(DESTDIR_ADD)
}
CONFIG(release, debug|release) {
- QMAKE_LIBDIR *= ../release$(DESTDIR_ADD)
+ QMAKE_LIBDIR = ../release$(DESTDIR_ADD) $$QMAKE_LIBDIR
DESTDIR = ../release$(DESTDIR_ADD)
}