st/es: Pass -linker and -ldflags to mklib.
authorChia-I Wu <olvaffe@gmail.com>
Sat, 23 Jan 2010 12:08:02 +0000 (20:08 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Sat, 23 Jan 2010 12:15:24 +0000 (20:15 +0800)
src/gallium/state_trackers/es/Makefile

index 095ffbb938ceb32812fe977007337c90bb9e0f0e..b03655127190fbc8efcf718981f32be10adc3d97 100644 (file)
@@ -49,7 +49,7 @@ default: $(TOP)/$(LIB_DIR)/$(GLES_1_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLES_2_LIB_NAM
 
 # Make the shared libs
 $(TOP)/$(LIB_DIR)/$(GLES_1_LIB_NAME): $(ES1_OBJECTS) $(ES1_LIBS) $(GALLIUM_AUXILIARIES)
-       $(MKLIB) -o $(GLES_1_LIB) \
+       $(MKLIB) -o $(GLES_1_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
                -major $(GLES_1_VERSION_MAJOR) \
                -minor $(GLES_1_VERSION_MINOR) \
                -patch $(GLES_1_VERSION_PATCH) \
@@ -59,7 +59,7 @@ $(TOP)/$(LIB_DIR)/$(GLES_1_LIB_NAME): $(ES1_OBJECTS) $(ES1_LIBS) $(GALLIUM_AUXIL
                $(GALLIUM_AUXILIARIES) $(SYS_LIBS)
 
 $(TOP)/$(LIB_DIR)/$(GLES_2_LIB_NAME): $(ES2_OBJECTS) $(ES1_LIBS) $(GALLIUM_AUXILIARIES)
-       $(MKLIB) -o $(GLES_2_LIB) \
+       $(MKLIB) -o $(GLES_2_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
                -major $(GLES_2_VERSION_MAJOR) \
                -minor $(GLES_2_VERSION_MINOR) \
                -patch $(GLES_2_VERSION_PATCH) \