From f321a0211be79a9289705d90e614b007f50252e7 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 20 Nov 2013 10:15:06 +1100 Subject: [PATCH] Add clarification on Windows cross-build, out of tree is possible --- doc/windows-build.txt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/doc/windows-build.txt b/doc/windows-build.txt index 0183dccb..a7c70138 100644 --- a/doc/windows-build.txt +++ b/doc/windows-build.txt @@ -280,16 +280,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.