mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
74cad0bec2
Use FreeBSD's strcasestr() if present.
21 lines
540 B
Plaintext
21 lines
540 B
Plaintext
--- 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
|