glew: Build it as a static lib.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Jan 2009 16:54:59 +0000 (16:54 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Jan 2009 16:54:59 +0000 (16:54 +0000)
configs/default
src/glew/Makefile

index 6fb8d5882021d3be998286ac4d357e54f9b993d0..40f3a2a02dc6ae1783a469f353be605057195eaa 100644 (file)
@@ -57,7 +57,7 @@ OSMESA_LIB = OSMesa
 GL_LIB_NAME = lib$(GL_LIB).so
 GLU_LIB_NAME = lib$(GLU_LIB).so
 GLUT_LIB_NAME = lib$(GLUT_LIB).so
-GLEW_LIB_NAME = lib$(GLEW_LIB).so
+GLEW_LIB_NAME = lib$(GLEW_LIB).a
 GLW_LIB_NAME = lib$(GLW_LIB).so
 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
 
index c0389df6f19aaa97728b6071cabac9a6d9aa88b7..49ee8b65943c5a916f0fb8596dadc7ace18c971c 100644 (file)
@@ -34,11 +34,7 @@ default: $(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME)
 
 # Make the library
 $(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME): depend $(OBJECTS)
-       $(MKLIB) -o $(GLEW_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
-               -major $(MAJOR) -minor $(MINOR) -patch $(TINY) \
-               $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
-               -id $(INSTALL_LIB_DIR)/lib$(GLEW_LIB).$(MAJOR).dylib \
-               $(GLEW_LIB_DEPS) $(OBJECTS)
+       $(MKLIB) -o $(GLEW_LIB) -static -install $(TOP)/$(LIB_DIR) $(OBJECTS)
 
 
 clean: