gallium/drm: Handle circular dependencies in the auxiliary libraries with make.
authorMichel Dänzer <daenzer@vmware.com>
Thu, 13 Aug 2009 16:46:53 +0000 (18:46 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Thu, 13 Aug 2009 16:46:53 +0000 (18:46 +0200)
src/gallium/winsys/drm/Makefile.template

index 985e5a861fc26474dbab2a6d339c03985fb44992..9635c3c50e9df6dddb6037f8f068596492785f2c 100644 (file)
@@ -83,7 +83,9 @@ 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 $@ \
-               $(OBJECTS) $(PIPE_DRIVERS) $(MESA_MODULES)  $(WINOBJ) $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
+               $(OBJECTS) $(PIPE_DRIVERS) \
+                -Wl,--start-group $(MESA_MODULES) -Wl,--end-group \
+                 $(WINOBJ) $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
 
 $(LIBNAME_EGL): $(WINSYS_OBJECTS) $(LIBS)
        $(MKLIB) -o $(LIBNAME_EGL) \