Always pass -linker and -ldflags to mklib for shared libraries
[mesa.git] / src / mesa / drivers / x11 / Makefile
index ce5366e332ed50b388b717b7ed33e5f9e8c7b4bd..b025246e6343724e8ca8df3b6809fa8cff0e4318 100644 (file)
@@ -55,11 +55,10 @@ default: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
 
 
 $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) $(CORE_MESA)
-       @ $(TOP)/bin/mklib -o $(GL_LIB) \
-               -linker '$(CC)' -ldflags '$(LDFLAGS)' \
+       @ $(MKLIB) -o $(GL_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
                -major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
-               -install $(TOP)/$(LIB_DIR) \
-               $(MKLIB_OPTIONS) $(GL_LIB_DEPS) $(OBJECTS)
+               -install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \
+               $(GL_LIB_DEPS) $(OBJECTS) $(CORE_MESA)