summaryrefslogtreecommitdiffstats
path: root/src/cegui-fix-linking-order.patch
diff options
context:
space:
mode:
authorQuintus <quintus@quintilianus.eu>2016-07-29 10:38:01 (GMT)
committerQuintus <quintus@quintilianus.eu>2016-07-29 10:43:43 (GMT)
commitd809a42c002df2c88a72a5024978f9bcb8feecc0 (patch)
tree17b7355026ef67a4cc603a4b9e21e1b4be699357 /src/cegui-fix-linking-order.patch
parentd3dc40229cd88e99e622dd699b868c79e8e7000d (diff)
downloadmxe-d809a42c002df2c88a72a5024978f9bcb8feecc0.zip
mxe-d809a42c002df2c88a72a5024978f9bcb8feecc0.tar.gz
mxe-d809a42c002df2c88a72a5024978f9bcb8feecc0.tar.bz2
Fix glew build problems.
Cf. upstream ticket at <https://bitbucket.org/cegui/cegui/issues/1131/opengl-renderers-fail-to-crosscompile-due>.
Diffstat (limited to 'src/cegui-fix-linking-order.patch')
-rw-r--r--src/cegui-fix-linking-order.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cegui-fix-linking-order.patch b/src/cegui-fix-linking-order.patch
new file mode 100644
index 0000000..2f43ff1
--- /dev/null
+++ b/src/cegui-fix-linking-order.patch
@@ -0,0 +1,19 @@
+# Fix linking order.
+#
+# Fixed upstream since commit bf699651740a1206c9ce214b91426db1e709ddc4,
+# which was after version 0.8.7, so remove this patch when upgrading to
+# version 0.8.8 or newer.
+# See: https://bitbucket.org/cegui/cegui/issues/1131/opengl-renderers-fail-to-crosscompile-due
+--- old/cegui/src/RendererModules/OpenGL/CMakeLists.txt 2016-04-23 20:19:40.000000000 +0200
++++ new/cegui/src/RendererModules/OpenGL/CMakeLists.txt 2016-07-29 11:58:25.062131930 +0200
+@@ -52,9 +52,9 @@
+ cegui_add_dependency(${CEGUI_TARGET_NAME} GLM)
+ cegui_add_dependency(${CEGUI_TARGET_NAME} EPOXY)
+ elseif (${CEGUI_USE_GLEW})
+- cegui_add_dependency(${CEGUI_TARGET_NAME} OPENGL)
+ cegui_add_dependency(${CEGUI_TARGET_NAME} GLM)
+ cegui_add_dependency(${CEGUI_TARGET_NAME} GLEW PUBLIC)
++ cegui_add_dependency(${CEGUI_TARGET_NAME} OPENGL)
+ endif ()
+
+ cegui_target_link_libraries(${CEGUI_TARGET_NAME} ${CEGUI_BASE_LIBNAME})