Skip to content
Browse files

rules: ensure that (overlay) isn't linked with '-z now'.

  • Loading branch information...
1 parent 05fd09e commit 8756933f3a18cec4f24ca885d5c33118cc10bddf @mkrautz mkrautz committed Jun 8, 2013
Showing with 23 additions and 0 deletions.
  1. +23 −0 rules
23 rules
@@ -3,6 +3,29 @@
#export DH_VERBOSE=1
+# The default Mumble build for Unix-like systems
+# uses the "-z now" linker flag by default on all
+# build products that support it, causing all dynamic
+# symbols to be resolved when the program is loaded.
+# However, the Mumble overlay (, a shared
+# library that is often LD_PRELOAD'ed into games),
+# expects to be able to resolve OpenGL symbols at
+# runtime without linking against a specific libGL
+# implementation.
+# Linking it as "-z now" defeats that, as the
+# loader will attempt to resolve the overlay's
+# OpenGL symbols at program start-up, which will
+# fail because it isn't linked against a library
+# providing those symbols.
+# Disabling the hardening option below is equivalent
+# to not linking using the "-z now"
+# option. All other products are still linked with
+# "-z now".
MAKEFILE = $(firstword $(MAKEFILE_LIST))
VERSION := $(shell dpkg-parsechangelog -l$(dir $(MAKEFILE))changelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')

0 comments on commit 8756933

Please sign in to comment.
Something went wrong with that request. Please try again.