summaryrefslogtreecommitdiff
path: root/ftp/wu-ftpd+ipv6/files/patch-al
blob: 1a97740873528531dbc3ba4af4d48290d2034e67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- support/makefiles/Makefile.fbs.orig	Sat Jul  1 22:22:55 2000
+++ support/makefiles/Makefile.fbs	Wed Oct 10 07:11:36 2001
@@ -33,7 +33,14 @@
 LIBC   = /usr/lib/libc.a
 IFLAGS = 
 LFLAGS = 
-CFLAGS = -O ${IFLAGS} ${LFLAGS}
+CFLAGS += ${IFLAGS} ${LFLAGS}
 
-SRCS   = strcasestr.c authuser.c ftw.c
-OBJS   = strcasestr.o authuser.o ftw.o
+SRCS   = authuser.c ftw.c
+OBJS   = authuser.o ftw.o
+
+HAVE_STRSTR!=   (nm ${LIBC} | grep -q strcasestr) || echo "NO"
+
+.if ${HAVE_STRSTR} == "NO"
+SRCS += strcasestr.c
+OBJS += strcasestr.o
+.endif