summaryrefslogtreecommitdiff
path: root/net/freewais-sf/patches/patch-ai
blob: f1ecae1dde93730c7b74ca1478ae9a745390e2be (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
$NetBSD: patch-ai,v 1.2 2004/03/09 11:24:04 seb Exp $

--- indexer/Makefile.SH.orig	Fri Apr 16 11:59:23 1999
+++ indexer/Makefile.SH	Sun May  9 23:14:01 1999
@@ -56,7 +56,7 @@
 
 CFLAGS = $ccflags $optimize -I\$(TOP)/lib/ir $mccflags $embed_cflags
 DPFLAGS = -I\$(TOP)/lib/ir $mccflags $embed_cflags
-LDFLAGS = -L\$(TOP)/lib -lwais $socketlib -lm $embed_ldopts
+LDFLAGS = ../lib/libwais.la $socketlib -lm $embed_ldopts
 BIN_EXP = $installbin
 USRINC = $usrinc
 OBJECTS =  waisindex.o
@@ -106,10 +106,10 @@
 waisindex: waisindex.o
 	$(RM) $@
 	if test -f $@; then $(MV) $@ $@~; else exit 0; fi
-	$(CC) -o $@ waisindex.o $(JLDFLAGS) $(LIBS)
+	$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ waisindex.o $(JLDFLAGS) $(LIBS)
 
 install:: waisindex
-	$(INSTALL) -c -s -m 555  waisindex $(BIN_EXP)
+	$(LIBTOOL) --mode=install $(INSTALL) -c -s -m 555  waisindex $(BIN_EXP)
 
 deinstall::
 	$(RM) $(BIN_EXP)/waisindex