st/vega: Do not depend on libm.
authorChia-I Wu <olv@lunarg.com>
Fri, 2 Apr 2010 02:27:57 +0000 (10:27 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 2 Apr 2010 02:32:36 +0000 (10:32 +0800)
This fixes the "no rule to make target -lm" error on darwin, reported by
Jeremy Huddleston.

src/gallium/state_trackers/vega/Makefile

index 037d8dc911aca6799fa9e1ff654c10f30b060e15..f6d1ea029cecd7ee7521c8cec1c830beac17b621 100644 (file)
@@ -42,7 +42,8 @@ VG_SOURCES = \
 
 VG_OBJECTS = $(VG_SOURCES:.c=.o)
 
-VG_LIBS = $(GALLIUM_AUXILIARIES) -lm
+VG_LIBS = $(GALLIUM_AUXILIARIES)
+VG_LIB_DEPS = $(EXTRA_LIB_PATH) -lm
 
 ### Include directories
 
@@ -64,7 +65,7 @@ $(TOP)/$(LIB_DIR)/$(VG_LIB_NAME): $(VG_OBJECTS) $(VG_LIBS)
                -minor $(VG_MINOR) \
                -patch $(VG_TINY) \
                -install $(TOP)/$(LIB_DIR) \
-               $(VG_OBJECTS) $(VG_LIBS)
+               $(VG_OBJECTS) $(VG_LIBS) $(VG_LIB_DEPS)
 
 ######################################################################
 # Generic stuff