Browse Source

Add clarification on Windows cross-build, out of tree is possible

nfactor-troky
Angus Gratton 11 years ago committed by Noel Maersk
parent
commit
f321a0211b
  1. 11
      doc/windows-build.txt

11
doc/windows-build.txt

@ -280,16 +280,13 @@ rm *.zip
** Building cgminer ** Building cgminer
Go back to the cgminer directory. Below assumes you're building in a "build-win32" or similar directory
inside the cgminer directory. Fix up the -I and -L paths appropriately
At time of writing (3.8.1) cgminer doesn't support out-of-tree build if you're building in-tree or someplace else.
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.)
Configure command: 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 ^^^ Plus whatever configure arguments you want to add. Note the paths
to cgminer-win32-deps that you may need to change. to cgminer-win32-deps that you may need to change.

Loading…
Cancel
Save