summaryrefslogtreecommitdiff
path: root/www/dhttpd/files/patch-Makefile
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-10-21 00:41:02 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-10-21 00:41:02 +0000
commit824d2a80b8b5cdede52418e1936d03c013bf4124 (patch)
treedc9d03d0ce624c7ecd849c194cae61f3540105a4 /www/dhttpd/files/patch-Makefile
parentFix build on -current (catch up to <sys/disklabel.h> changes) (diff)
Fix build on -current (#include <stdlib.h> for exit() prototype) and
respect CC and CFLAGS
Diffstat (limited to 'www/dhttpd/files/patch-Makefile')
-rw-r--r--www/dhttpd/files/patch-Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/www/dhttpd/files/patch-Makefile b/www/dhttpd/files/patch-Makefile
new file mode 100644
index 000000000000..634845426973
--- /dev/null
+++ b/www/dhttpd/files/patch-Makefile
@@ -0,0 +1,28 @@
+--- src/Makefile.orig Mon Mar 3 16:35:53 1997
++++ src/Makefile Sun Oct 20 17:42:06 2002
+@@ -1,22 +1,21 @@
+ # if compiling for SunOS, you need to add -lsocket to the LIBS variable
+
+ SH = /bin/sh
+-CC = gcc
++CXX ?= c++
+ MAKEFILE= Makefile
+-CFLAGS = -O2 --pipe
+ LIBS =
+
+ OBJECTS = main.o socket.o httpsock.o
+
+ .cc.o:
+- $(CC) $(CFLAGS) -c -o $*.o $<
++ $(CXX) $(CXXFLAGS) -c -o $*.o $<
+
+ all: compile dhttpd
+
+ compile: $(OBJECTS)
+
+ dhttpd: $(OBJECTS)
+- $(CC) -o dhttpd $(OBJECTS) $(LIBS)
++ $(CXX) -o dhttpd $(OBJECTS) $(LIBS)
+ strip dhttpd
+
+ clean: