xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-graphics/glew/glew/notempdir.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1We don't use the dist-* targets and hence DIST_DIR isn't used. The current code
2creates a new temp directory in /tmp/ for every invocation of make. Lets
3not do that.
4
5https://github.com/nigels-com/glew/issues/334
6
7Upstream-Status: Pending [a revised version would be needed for upstream]
8Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9
10Index: glew-2.2.0/Makefile
11===================================================================
12--- glew-2.2.0.orig/Makefile
13+++ glew-2.2.0/Makefile
14@@ -56,7 +56,6 @@ DIST_SRC_ZIP ?= $(shell pwd)/$(DIST_NAME
15 DIST_SRC_TGZ ?= $(shell pwd)/$(DIST_NAME).tgz
16 DIST_WIN32   ?= $(shell pwd)/$(DIST_NAME)-win32.zip
17
18-DIST_DIR := $(shell mktemp -d /tmp/glew.XXXXXX)/$(DIST_NAME)
19
20 # To disable stripping of linked binaries either:
21 #   - use STRIP= on gmake command-line
22