[Libreoffice-commits] core.git: external/glew
Michael Stahl
mstahl at redhat.com
Wed Jan 29 07:06:00 PST 2014
external/glew/ExternalProject_glew.mk | 3 ++-
external/glew/UnpackedTarball_glew.mk | 5 +++++
external/glew/glew_use_CC_variable.patch.1 | 24 ++++++++++++++++++++++++
3 files changed, 31 insertions(+), 1 deletion(-)
New commits:
commit 69f71736699ca4d0c7c8cbcc9127fa84db5a7a3f
Author: Michael Stahl <mstahl at redhat.com>
Date: Wed Jan 29 15:49:54 2014 +0100
glew: use CC from environment
Also default LD is exported from outer make, override that.
Change-Id: Iefbe7fce93e9021cbd9bb087d9becace85138f07
diff --git a/external/glew/ExternalProject_glew.mk b/external/glew/ExternalProject_glew.mk
index 7e08e2a..a731273 100644
--- a/external/glew/ExternalProject_glew.mk
+++ b/external/glew/ExternalProject_glew.mk
@@ -24,7 +24,8 @@ else
$(call gb_ExternalProject_get_state_target,glew,build) :
$(call gb_ExternalProject_run,glew,\
- $(if $(filter TRUE,$(ENABLE_DEBUG)),STRIP=) $(MAKE) glew.lib $(if $(filter TRUE,$(ENABLE_DEBUG)),debug) \
+ $(if $(filter TRUE,$(ENABLE_DEBUG)),STRIP=) LD=$(CC) \
+ $(MAKE) glew.lib $(if $(filter TRUE,$(ENABLE_DEBUG)),debug) \
)
endif
diff --git a/external/glew/UnpackedTarball_glew.mk b/external/glew/UnpackedTarball_glew.mk
index 1fd9625..af88c16 100644
--- a/external/glew/UnpackedTarball_glew.mk
+++ b/external/glew/UnpackedTarball_glew.mk
@@ -18,6 +18,11 @@ $(eval $(call gb_UnpackedTarball_set_patchflags,glew,--binary))
$(eval $(call gb_UnpackedTarball_add_patches,glew,\
external/glew/glew-fix-rc-error.patch.1 \
))
+else
+$(eval $(call gb_UnpackedTarball_add_patches,glew,\
+ external/glew/glew_use_CC_variable.patch.1 \
+))
endif
+
# vim: set noet sw=4 ts=4:
diff --git a/external/glew/glew_use_CC_variable.patch.1 b/external/glew/glew_use_CC_variable.patch.1
new file mode 100644
index 0000000..56e9903
--- /dev/null
+++ b/external/glew/glew_use_CC_variable.patch.1
@@ -0,0 +1,24 @@
+Use CC variable from environment, don't hardcode "cc".
+
+--- glew/config/Makefile.linux.orig 2014-01-29 15:39:43.364972925 +0100
++++ glew/config/Makefile.linux 2014-01-29 15:44:45.621000941 +0100
+@@ -1,6 +1,6 @@
+ NAME = $(GLEW_NAME)
+-CC = cc
+-LD = cc
++CC ?= cc
++LD ?= $(CC)
+ M_ARCH ?= $(shell uname -m)
+ ARCH64 = false
+ ifeq (x86_64,${M_ARCH})
+--- glew/config/Makefile.darwin.orig 2014-01-29 15:44:39.541000377 +0100
++++ glew/config/Makefile.darwin 2014-01-29 15:44:47.548001120 +0100
+@@ -1,6 +1,6 @@
+ NAME = $(GLEW_NAME)
+-CC = cc
+-LD = cc
++CC ?= cc
++LD ?= $(CC)
+ CFLAGS.EXTRA = -dynamic -fno-common
+ #CFLAGS.EXTRA += -no-cpp-precomp
+ LDFLAGS.EXTRA =
More information about the Libreoffice-commits
mailing list