$NetBSD: patch-af,v 1.3 2004/10/26 13:55:37 adam Exp $ --- src/glu/sgi/Makefile.orig 2004-08-16 07:46:28.000000000 +0000 +++ src/glu/sgi/Makefile @@ -115,9 +115,11 @@ OBJECTS = $(C_OBJECTS) $(CC_OBJECTS) ##### RULES ##### .c.o: + ${LIBTOOL} --mode=compile \ $(CC) -c $(INCDIRS) $(CFLAGS) -DNDEBUG -DLIBRARYBUILD $< -o $@ .cc.o: + ${LIBTOOL} --mode=compile \ $(CXX) -c $(INCDIRS) $(CXXFLAGS) -DNDEBUG -DLIBRARYBUILD $< -o $@ @@ -136,10 +138,8 @@ $(LIB_DIR): # Make the library: $(LIB_DIR)/$(GLU_LIB_NAME): $(OBJECTS) - CC=$(CC) CXX=$(CXX) $(TOP)/bin/mklib -o $(GLU_LIB) -major $(GLU_MAJOR) \ - -minor $(GLU_MINOR) -patch $(GLU_TINY) \ - -cplusplus $(MKLIB_OPTIONS) -install $(LIB_DIR) \ - $(GLU_LIB_DEPS) $(OBJECTS) + ${LIBTOOL} --mode=link ${CXX} -o ${GLU_LIB_NAME:.so=.la} ${OBJECTS:.o=.lo} \ + -rpath ${PREFIX}/lib -version-info ${GLU_MAJOR}:${GLU_MINOR} clean: