Skip to content

Commit

Permalink
Added documentation for minGW cross-compiling.
Browse files Browse the repository at this point in the history
Former-commit-id: db4a2047b15d423ac44fa1758f9e5c6e86c6ec06
  • Loading branch information
Scott Biersdorff committed May 23, 2011
1 parent 68e339d commit 91bba89
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.minGW
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
== Info for Building TAU with the minGW cross-compilers for use on
32-bit Windows ==

Requirements:

* i586-mingw32msvc-gcc
* i586-mingw32msvc-g++
* i586-mingw32msvc-ar

in your path.

Limitations:

* Only static libraries
* No symbol demangling
* No signal processing

Instructions:

%> ./configure -DISABLESHARED
%> patch include/Makefile minGW.patch

Libraries will be placed in 'mingw32/lib'.
42 changes: 42 additions & 0 deletions minGW.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
31,34c31,34
< CONFIG_ARCH=x86_64
< TAU_ARCH=x86_64
< CONFIG_CC=gcc
< CONFIG_CXX=g++
---
> CONFIG_ARCH=mingw32
> TAU_ARCH=mingw32
> CONFIG_CC=i586-mingw32msvc-gcc
> CONFIG_CXX=i586-mingw32msvc-g++
55c55
< USER_OPT=-g -O2
---
> USER_OPT=-g -O2 -DTAU_WINDOWS -DTAU_DISABLE_SIGUSR -DTAU_MINGW -DTAU_ENABLE
342c342
< PLATFORM_O = TauLinuxTimers.o #ENDIF##LINUXTIMERS#
---
> # PLATFORM_O = TauLinuxTimers.o #ENDIF##LINUXTIMERS#
383c383
< PROFILEOPT31 = -DTAU_LINUX_TIMERS #ENDIF##LINUXTIMERS#
---
> #PROFILEOPT31 = -DTAU_LINUX_TIMERS #ENDIF##LINUXTIMERS#
418c418
< PROFILEOPT60 = -DTAU_LARGEFILE -D_LARGEFILE64_SOURCE #ENDIF##TAU_LARGEFILE#
---
> #TAU_LARGEFILE##TAU_LARGEFILE#PROFILEOPT60 = -DTAU_LARGEFILE -D_LARGEFILE64_SOURCE #ENDIF#
436c436
< PROFILEOPT75 = -DTAU_BFD #ENDIF##TAU_BFD#
---
> #PROFILEOPT75 = -DTAU_BFD #ENDIF##TAU_BFD#
439c439
< PROFILEOPT77 = -DHAVE_GNU_DEMANGLE #ENDIF##TAU_DEMANGLE#
---
> #PROFILEOPT77 = -DHAVE_GNU_DEMANGLE #ENDIF##TAU_DEMANGLE#
778c778
< TAU_AR = ar #ENDIF#
---
> TAU_AR = i586-mingw32msvc-ar #ENDIF#
813c813
< BFDLIBS=-lbfd
---
> #BFDLIBS=-lbfd

0 comments on commit 91bba89

Please sign in to comment.