Skip to content

Commit

Permalink
update libuv, update webserver (copied from libuv branch), and close #…
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Nov 28, 2012
1 parent 3e0bc4c commit a6e75e3
Show file tree
Hide file tree
Showing 8 changed files with 170 additions and 70 deletions.
11 changes: 7 additions & 4 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,16 @@ endif

## LIBUV

UV_OBJ_TARGET = $(USR)/lib/uv.a
UV_OBJ_SOURCE = libuv/uv.a
UV_OBJ_TARGET = $(USR)/lib/libuv.a
UV_OBJ_SOURCE = libuv/libuv.a

libuv/Makefile:
(cd .. && git submodule init && git submodule update)
$(UV_OBJ_SOURCE): libuv/Makefile
$(MAKE) -C libuv CC="$(CC)"
ifneq ($(OS), WINNT)
$(MAKE) libuv.${SHLIB_EXT} -C libuv CC="$(CC)"
endif
$(MAKE) libuv.a -C libuv CC="$(CC)"
$(UV_OBJ_TARGET): $(UV_OBJ_SOURCE)
mkdir -p $(USR)/include
cp $(UV_OBJ_SOURCE) $(USR)/lib/
Expand All @@ -282,7 +285,7 @@ install-uv: $(UV_OBJ_TARGET)

clean-uv:
$(MAKE) -C libuv clean
rm -f $(USR)/lib/uv.a $(USR)/include/uv.h
rm -rf $(USR)/lib/libuv.a $(USR)/include/uv.h $(USR)/include/uv-private
distclean-uv: clean-uv

## PCRE ##
Expand Down
2 changes: 1 addition & 1 deletion deps/libuv
Submodule libuv updated from a6d3d8 to 070953
2 changes: 1 addition & 1 deletion deps/lighttpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server.document-root = "../share/julia/website"
server.document-root = "../../ui/website"

server.port = 2000

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FLAGS = \
-I$(shell $(LLVM_CONFIG) --includedir) \
-I$(JULIAHOME)/deps/libuv/include -I$(JULIAHOME)/usr/include

LIBS = $(shell $(LLVM_CONFIG) --libfiles) $(WHOLE_ARCHIVE) $(JULIAHOME)/src/flisp/libflisp.a $(WHOLE_ARCHIVE) $(JULIAHOME)/src/support/libsupport.a -L$(USR)/lib $(USR)/$(JL_LIBDIR)/uv.a $(OSLIBS) -lpthread $(shell $(LLVM_CONFIG) --ldflags)
LIBS = $(shell $(LLVM_CONFIG) --libfiles) $(WHOLE_ARCHIVE) $(JULIAHOME)/src/flisp/libflisp.a $(WHOLE_ARCHIVE) $(JULIAHOME)/src/support/libsupport.a -L$(USR)/lib $(USR)/$(JL_LIBDIR)/libuv.a $(OSLIBS) -lpthread $(shell $(LLVM_CONFIG) --ldflags)

ifneq ($(MAKECMDGOALS),debug)
TARGET =
Expand Down
2 changes: 1 addition & 1 deletion ui/webserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include $(JULIAHOME)/Make.inc
override CFLAGS += $(JCFLAGS)
override CXXFLAGS += $(JCXXFLAGS)

LIBS = -lpthread $(USR)/$(JL_LIBDIR)/uv.a
LIBS = -lpthread $(USR)/$(JL_LIBDIR)/libuv.a
ifeq ($(OS), Linux)
LIBS += -lrt
endif
Expand Down
2 changes: 1 addition & 1 deletion ui/webserver/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ namespace scgi

#define PASS_ON(f) stream->read_cb = &f; \
uv_buf_t buf2; \
buf2.base=pos; \
buf2.base=const_cast<char*>(pos); \
buf2.len=buf.len-nread-(pos-buf.base); \
f(stream,nread-(pos-buf.base),buf2);

Expand Down
3 changes: 2 additions & 1 deletion ui/webserver/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include <string>
#include <vector>
#include <sstream>
//#define DEBUG_TRACE
//#define JULIA_DEBUG_TRACE
//#define CPP_DEBUG_TRACE

namespace scgi
{
Expand Down
Loading

0 comments on commit a6e75e3

Please sign in to comment.