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:
authorRobert Adam <krzmbrzl@gmail.com>2020-12-13 20:33:00 +0300
committerRobert Adam <krzmbrzl@gmail.com>2020-12-13 20:33:00 +0300
commit3bdcbd0548ff1511bee7672c2a34f4c37632d7cf (patch)
treebc8e39416f06647c06350102b8e069006f6dfc87 /overlay_gl
parent668cd3768a221c11fe99bc7e21a6734eb3181f69 (diff)
BUILD(cmake): Fix overlay link option being overwritten
If a system for instance uses -z,now in their default build flags (as Arch Linux does), it will overwrite the -z,lazy flag which however is needed in order for the overlay to work with games that are not directly linked with OpenGL. By using the BEFORE keyword in cmake, we can prevent this from happening. This commit can be viewed as a follow-up for #3307. Fixes #3296
Diffstat (limited to 'overlay_gl')
-rw-r--r--overlay_gl/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay_gl/CMakeLists.txt b/overlay_gl/CMakeLists.txt
index 267da184c..53886e33b 100644
--- a/overlay_gl/CMakeLists.txt
+++ b/overlay_gl/CMakeLists.txt
@@ -19,7 +19,7 @@ set_target_properties(overlay_gl
)
if(NOT APPLE)
- target_link_options(overlay_gl
+ target_link_options(overlay_gl BEFORE
PRIVATE
"-Wl,-z,lazy"
)