diff options
Diffstat (limited to 'main/mesa/mesa-7.6.1-ldflags.patch')
-rw-r--r-- | main/mesa/mesa-7.6.1-ldflags.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/mesa/mesa-7.6.1-ldflags.patch b/main/mesa/mesa-7.6.1-ldflags.patch new file mode 100644 index 0000000000..56914b711f --- /dev/null +++ b/main/mesa/mesa-7.6.1-ldflags.patch @@ -0,0 +1,20 @@ +diff --git a/src/gallium/winsys/drm/Makefile.template b/src/gallium/winsys/drm/Makefile.template +index 9635c3c..88e02c0 100644 +--- a/src/gallium/winsys/drm/Makefile.template ++++ b/src/gallium/winsys/drm/Makefile.template +@@ -83,6 +83,7 @@ default: depend symlinks $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME) + + $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) $(WINOBJ) Makefile $(TOP)/src/mesa/drivers/dri/Makefile.template + $(MKLIB) -noprefix -o $@ \ ++ -ldflags "$(LDFLAGS)" \ + $(OBJECTS) $(PIPE_DRIVERS) \ + -Wl,--start-group $(MESA_MODULES) -Wl,--end-group \ + $(WINOBJ) $(DRI_LIB_DEPS) $(DRIVER_EXTRAS) +@@ -90,6 +91,7 @@ $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) $(WINOBJ) Makefile $(TOP) + $(LIBNAME_EGL): $(WINSYS_OBJECTS) $(LIBS) + $(MKLIB) -o $(LIBNAME_EGL) \ + -linker "$(CC)" \ ++ -ldflags "$(LDFLAGS)" \ + -noprefix \ + $(OBJECTS) $(MKLIB_OPTIONS) $(WINSYS_OBJECTS) $(PIPE_DRIVERS) $(WINOBJ) $(DRI_LIB_DEPS) \ + --whole-archive $(LIBS) $(GALLIUM_AUXILIARIES) --no-whole-archive $(DRIVER_EXTRAS) |