summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-05-20 10:07:43 +0300
committerTor Lillqvist <tml@collabora.com>2014-05-20 10:19:18 +0300
commitf3a46244a07b76d633ccc7f83da3fa502612e978 (patch)
tree6a2884a5d270646024faef3134bbe06fe36317ca
parent1df54514d7a1ebb1b4fa16cca386a34e7c41c490 (diff)
Make it actually work to build GLEW for debugging
The check in the GLEW Makefile looked at the whole $(MAKECMDGOALS), which in our case was the string 'glew.lib debug', not just 'debug'. Change-Id: I639395c944e8f2b443cbb55b451a4036b2c9d3bb
-rw-r--r--external/glew/UnpackedTarball_glew.mk4
-rw-r--r--external/glew/glew-debug.patch.112
2 files changed, 16 insertions, 0 deletions
diff --git a/external/glew/UnpackedTarball_glew.mk b/external/glew/UnpackedTarball_glew.mk
index 1b100bcf2a27..64cbc5cf8b62 100644
--- a/external/glew/UnpackedTarball_glew.mk
+++ b/external/glew/UnpackedTarball_glew.mk
@@ -48,4 +48,8 @@ $(eval $(call gb_UnpackedTarball_add_patches,glew,\
))
endif
+$(eval $(call gb_UnpackedTarball_add_patches,glew,\
+ external/glew/glew-debug.patch.1 \
+))
+
# vim: set noet sw=4 ts=4:
diff --git a/external/glew/glew-debug.patch.1 b/external/glew/glew-debug.patch.1
new file mode 100644
index 000000000000..c6e30a478310
--- /dev/null
+++ b/external/glew/glew-debug.patch.1
@@ -0,0 +1,12 @@
+-*- Mode: Diff -*-
+--- glew/Makefile
++++ glew/Makefile
+@@ -65,7 +65,7 @@
+ RM ?= rm -f
+ LN ?= ln -sf
+
+-ifeq ($(MAKECMDGOALS), debug)
++ifneq (,$(filter debug,$(MAKECMDGOALS)))
+ OPT = -g
+ else
+ OPT = $(POPT)