[vlc-devel] [PATCH 07/19] contrib: glew: fix passing the environment LDFLAGS on mingw32

Steve Lhomme robux4 at videolabs.io
Wed Jun 14 14:01:56 CEST 2017


---
 contrib/src/glew/ldflags.patch | 11 +++++++++++
 contrib/src/glew/rules.mak     |  1 +
 2 files changed, 12 insertions(+)
 create mode 100644 contrib/src/glew/ldflags.patch

diff --git a/contrib/src/glew/ldflags.patch b/contrib/src/glew/ldflags.patch
new file mode 100644
index 0000000000..a3f0069e69
--- /dev/null
+++ b/contrib/src/glew/ldflags.patch
@@ -0,0 +1,11 @@
+--- glew/Makefile	2017-06-12 14:06:11.188663600 +0200
++++ glew/Makefile.ldflags	2017-06-12 14:06:58.588216600 +0200
+@@ -68,7 +68,7 @@ CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFL
+ LIB.SRCS = src/glew.c
+ LIB.OBJS = $(LIB.SRCS:.c=.o)
+ LIB.SOBJS = $(LIB.SRCS:.c=.$(SHARED_OBJ_EXT))
+-LIB.LDFLAGS = $(LDFLAGS.EXTRA) $(LDFLAGS.GL)
++LIB.LDFLAGS = $(LDFLAGS) $(LDFLAGS.EXTRA) $(LDFLAGS.GL)
+ LIB.LIBS = $(GL_LDFLAGS)
+ 
+ LIB.OBJS.MX  = $(LIB.SRCS:.c=.mx.o)
diff --git a/contrib/src/glew/rules.mak b/contrib/src/glew/rules.mak
index 9f3cdc10f9..fa1f3ed46d 100644
--- a/contrib/src/glew/rules.mak
+++ b/contrib/src/glew/rules.mak
@@ -13,6 +13,7 @@ $(TARBALLS)/glew-$(GLEW_VERSION).tar.gz:
 
 glew: glew-$(GLEW_VERSION).tar.gz .sum-glew
 	$(UNPACK)
+	$(APPLY) $(SRC)/glew/ldflags.patch
 ifdef HAVE_WIN32
 	$(APPLY) $(SRC)/glew/win32.patch
 endif
-- 
2.12.1



More information about the vlc-devel mailing list