Skip to content

Commit

Permalink
build.sh: compat with gcc 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Oct 31, 2014
1 parent f64adb3 commit 5751a49
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#!/bin/bash

# Linux build (Ubuntu 14.04)
# Linux build

make clean || echo clean

rm -f config.status
./autogen.sh || echo done

extracflags="-march=native -Ofast -Wall -D_REENTRANT -flto -fuse-linker-plugin -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2 -fsched2-use-superblocks -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16"
# 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"

# Ubuntu 14.04 (gcc 4.8)
# extracflags="$extracflags -Ofast -flto -fuse-linker-plugin -ftree-loop-if-convert-stores"

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

Expand Down

0 comments on commit 5751a49

Please sign in to comment.