mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +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
|