Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Commit

Permalink
Updated the compilation instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
netswift committed Mar 28, 2015
1 parent 632ea79 commit e729bd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,16 @@ Then:
git submodule init
git submodule update
autoreconf -i
CFLAGS="-O2 -Wall -march=native" ./configure <options>
CFLAGS="-O2 -Wall -march=native -std=gnu99" ./configure <options>
make

To compile a version that can be used accross machines, remove
`-march=native`.

To compile a debug version, replace `-O2` with `-ggdb`.

Depending on your environment, replace `-std=gnu99` with `-std=c99`.

Systemwide installation is optional. You may run `sgminer` from the build
directory directly, or `make install` if you wish to install
`sgminer` to a system location or a location you specified with `--prefix`.
Expand Down

0 comments on commit e729bd0

Please sign in to comment.