freebsd-ports/net/vncreflector/files/patch-Makefile
Brooks Davis 882b28e78e Given vncreflector a chance on 4.x. First, require gcc-3.3 or newer as
2.95.4 appears to generate bad code (none of the debugging tools I tried
could even come up with a decent stack trace when it died.)  Second, fix
the RC script so it can find rc.subr.
2005-04-18 22:35:16 +00:00

36 lines
721 B
Text

$FreeBSD$
--- Makefile.orig
+++ Makefile
@@ -14,10 +14,10 @@
#
# Variables you might want to edit: CFLAGS, CONFFLAGS
-IFLAGS = -I.
+IFLAGS = -I%%LOCALBASE%%/include
# Production
-CFLAGS = -O2 $(IFLAGS)
+#CFLAGS = -O2 $(IFLAGS)
# Debug (strict)
#CFLAGS = -g -pedantic -Wall $(IFLAGS)
# Debug (profiling)
@@ -50,7 +50,7 @@
default: $(PROG)
$(PROG): $(OBJS)
- $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
+ $(CC) $(CFLAGS) $(IFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
clean:
rm -f $(OBJS) *core* ./*~ ./*.bak $(PROG)
@@ -59,7 +59,7 @@
$(MAKEDEPEND) $(MAKEDEPFLAGS) -I. $(SRCS) 2> /dev/null
.c.o:
- $(CC) $(CFLAGS) $(CONFFLAGS) -c $<
+ $(CC) $(CFLAGS) $(IFLAGS) $(CONFFLAGS) -c $<
# DO NOT DELETE