summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-af
blob: 785c0550954c04ac6a7fdfb5b65f568236d1cf21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-af,v 1.4 2005/06/07 14:21:42 minskim Exp $

--- src/glu/sgi/Makefile.orig	2004-08-16 02:46:28.000000000 -0500
+++ 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,9 @@ $(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} \
+		${GLU_LIB_DEPS:M-l*}
 
 
 clean: