Skip to content

Commit

Permalink
build: disable most extra cflags
Browse files Browse the repository at this point in the history
not sure why yet, but neoscrypt do a segfault on my linux Ivy bridge
  • Loading branch information
tpruvot committed Mar 9, 2015
1 parent 0ce4a42 commit afb4db7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ rm -f config.status
./autogen.sh || echo done

# Ubuntu 10.04 (gcc 4.4)
extracflags="-O3 -march=native -Wall -D_REENTRANT -funroll-loops -fvariable-expansion-in-unroller -fmerge-all-constants -fbranch-target-load-optimize2 -fsched2-use-superblocks -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16"
# extracflags="-O3 -march=native -Wall -D_REENTRANT -funroll-loops -fvariable-expansion-in-unroller -fmerge-all-constants -fbranch-target-load-optimize2 -fsched2-use-superblocks -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16"

# Debian 7.7 / Ubuntu 14.04 (gcc 4.7+)
extracflags="$extracflags -Ofast -flto -fuse-linker-plugin -ftree-loop-if-convert-stores"

./configure --with-crypto --with-curl CFLAGS="$extracflags -DUSE_ASM -pg"
./configure --with-crypto --with-curl CFLAGS="-O2 $extracflags -DUSE_ASM -pg"

make -j 4

strip --strip-unneeded cpuminer
strip -s cpuminer
3 changes: 0 additions & 3 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1734,9 +1734,6 @@ void print_hash_tests(void)

//buf[0] = 1; buf[64] = 2; // for endian tests

skein2hash(&hash[0], &buf[0]);
printpfx("skein2", hash);

sha256d((uint8_t*) &hash[0], (uint8_t*)&buf[0], 64);
printpfx("SHA 256D", hash);

Expand Down

0 comments on commit afb4db7

Please sign in to comment.