summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-af
blob: 8c50001a4c4f2bef1024387a62ef02e8dc72bd22 (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
$NetBSD: patch-af,v 1.2 2004/04/09 13:06:06 adam Exp $

--- src/glu/sgi/Makefile.X11.orig	2004-03-24 20:02:03.000000000 +0000
+++ src/glu/sgi/Makefile.X11
@@ -119,9 +119,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 $@
 
 
@@ -140,10 +142,8 @@ targets: $(LIBDIR)/$(GLU_LIB)
 
 # Make the library:
 $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
-	$(TOP)/bin/mklib -o $(GLU_LIB_NAME) -major $(GLU_MAJOR) \
-		-minor $(GLU_MINOR) -patch $(GLU_TINY) \
-		$(MKLIB_OPTIONS) -cplusplus -install $(LIBDIR) \
-		$(GLU_LIB_DEPS) $(OBJECTS)
+	${LIBTOOL} --mode=link ${CXX} -o ${GLU_LIB:.so=.la} ${OBJECTS:.o=.lo} \
+		-rpath ${PREFIX}/lib -version-info ${GLU_MAJOR}:${GLU_MINOR}