summaryrefslogtreecommitdiffstats
path: root/patches/MesaLib-7.8.2/fix-mklib-cmdline.diff
blob: a3fc079b88479440612b507c7288eb7e0cfac04c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Subject: fix mklib command line
From: Michael Olbrich <m.olbrich@pengutronix.de>

during configure the environment variable MKLIB_OPTIONS can be used to
specify extra options for mklib. This variable is not used everywhere.
This patch fixes this.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>

---
 src/gallium/winsys/drm/Makefile.template |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/src/gallium/winsys/drm/Makefile.template
===================================================================
--- a/src/gallium/winsys/drm/Makefile.template
+++ b/src/gallium/winsys/drm/Makefile.template
@@ -65,7 +65,7 @@ default: depend symlinks $(TOP)/$(LIB_DI
 
 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) Makefile \
 		$(TOP)/src/mesa/drivers/dri/Makefile.template
-	$(MKLIB) -o $@ -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \
+	$(MKLIB) -o $@ $(MKLIB_OPTIONS) -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \
 		$(OBJECTS) $(PIPE_DRIVERS) \
                 -Wl,--start-group $(MESA_MODULES) -Wl,--end-group \
                  $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)