Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Add clarification on Windows cross-build, out of tree is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
projectgus committed Nov 19, 2013
1 parent 69e053c commit 18726c7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions windows-build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,13 @@ rm *.zip

** Building cgminer

Go back to the cgminer directory.

At time of writing (3.8.1) cgminer doesn't support out-of-tree build
directories so you'll need to rerun configure to switch between
building for linux and cross-building for win32 (or check out totally
separate working directories.)
Below assumes you're building in a "build-win32" or similar directory
inside the cgminer directory. Fix up the -I and -L paths appropriately
if you're building in-tree or someplace else.

Configure command:

CPPFLAGS="-I`pwd`/../cgminer-win32-deps/include" LDFLAGS="-L`pwd`/../cgminer-win32-deps/lib -lcurldll" ./configure --prefix=/usr/local/i586-mingw32 --host=i586-mingw32msvc --build=i686-linux
CPPFLAGS="-I`pwd`/../../cgminer-win32-deps/include" LDFLAGS="-L`pwd`/../../cgminer-win32-deps/lib -lcurldll" ../autogen.sh --prefix=/usr/local/i586-mingw32 --host=i586-mingw32msvc --build=i686-linux

^^^ Plus whatever configure arguments you want to add. Note the paths
to cgminer-win32-deps that you may need to change.
Expand Down

0 comments on commit 18726c7

Please sign in to comment.