Skip to content

Commit

Permalink
fix #3287
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Jun 6, 2013
1 parent 3421f2e commit 08f6772
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 28 deletions.
24 changes: 1 addition & 23 deletions README.windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,29 +137,7 @@ First the required dependencies will be installed:
10. Complete the installation of the required `mingw-w64` packages:
`yaourt -S mingw-w64-gcc`

The build and install process of Julia is the same as in steps 1-7 of Ubuntu except that the following changes need to be made before executing the 7 steps:

1. Add `OPENBLAS_BUILD_OPTS += HOSTCC=gcc` in `deps/Makefile` after the definition of the `OPENBLAS_BUILD_OPTS` environment variable.
2. In `src/Mafefile` replace `./flisp/flisp` with `$(call spawn,./flisp/flisp)`. More specifically replace the lines

```
julia_flisp.boot.inc: julia_flisp.boot flisp/libflisp.a
$(QUIET_FLISP) ./flisp/flisp ./bin2hex.scm < $< > $@
julia_flisp.boot: julia-parser.scm julia-syntax.scm \
match.scm utils.scm jlfrontend.scm mk_julia_flisp_boot.scm flisp/libflisp.a
$(QUIET_FLISP) ./flisp/flisp ./mk_julia_flisp_boot.scm
```
with

```
julia_flisp.boot.inc: julia_flisp.boot flisp/libflisp.a
$(QUIET_FLISP) $(call spawn,./flisp/flisp) ./bin2hex.scm < $< > $@
julia_flisp.boot: julia-parser.scm julia-syntax.scm \
match.scm utils.scm jlfrontend.scm mk_julia_flisp_boot.scm flisp/libflisp.a
$(QUIET_FLISP) $(call spawn,./flisp/flisp) ./mk_julia_flisp_boot.scm
```
The build and install process of Julia is the same as in steps 1-7 of Ubuntu.

Finally, after completing the Julia cross-compilation by executing the 7 Julia build and installation steps described in the Ubuntu section and after moving the julia-* directory/zipfile to the target machine, add the `julia-*/lib` and `julia-*/lib/julia` directories to your Windows `PATH` environment variable.

Expand Down
2 changes: 1 addition & 1 deletion deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ OPENBLAS_BUILD_OPTS += INTERFACE64=1
endif

ifneq ($(BUILD_OS),$(OS))
OPENBLAS_BUILD_OPTS += OSNAME=$(OS) CROSS=1
OPENBLAS_BUILD_OPTS += OSNAME=$(OS) CROSS=1 HOSTCC=gcc
ifeq ($(ARCH),i686)
OPENBLAS_BUILD_OPTS += BINARY=32
else ifeq ($(ARCH),x86_64)
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ HEADERS = julia.h $(wildcard support/*.h) $(LIBUV_INC)/uv.h
ast.o ast.do: julia_flisp.boot.inc flisp/*.h

julia_flisp.boot.inc: julia_flisp.boot flisp/libflisp.a
$(QUIET_FLISP) ./flisp/flisp ./bin2hex.scm < $< > $@
$(QUIET_FLISP) $(call spawn,./flisp/flisp) ./bin2hex.scm < $< > $@

julia_flisp.boot: julia-parser.scm julia-syntax.scm \
match.scm utils.scm jlfrontend.scm mk_julia_flisp_boot.scm flisp/libflisp.a
$(QUIET_FLISP) ./flisp/flisp ./mk_julia_flisp_boot.scm
$(QUIET_FLISP) $(call spawn,./flisp/flisp) ./mk_julia_flisp_boot.scm

codegen.o codegen.do: intrinsics.cpp debuginfo.cpp cgutils.cpp ccall.cpp
builtins.o builtins.do: table.c
Expand Down
4 changes: 2 additions & 2 deletions src/flisp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ $(LIBTARGET).a: $(OBJS)

$(EXENAME)-debug: $(DOBJS) $(LIBFILES) $(LIBTARGET)-debug.a flmain.do
$(QUIET_CC) $(CC) $(DEBUGFLAGS) $(DOBJS) flmain.do -o $(EXENAME)-debug $(LIBTARGET).a $(LIBS) $(OSLIBS)
./$(EXENAME)-debug unittest.lsp
$(call spawn,./$(EXENAME)-debug) unittest.lsp

$(EXENAME): $(OBJS) $(LIBFILES) $(LIBTARGET).a flmain.o
$(QUIET_CC) $(CC) $(SHIPFLAGS) $(OBJS) flmain.o $(LDFLAGS) -o $(EXENAME) $(LIBTARGET).a $(LIBS) $(OSLIBS)
./$(EXENAME) unittest.lsp
$(call spawn,./$(EXENAME)) unittest.lsp

clean:
rm -f *.o
Expand Down

0 comments on commit 08f6772

Please sign in to comment.