Skip to content

Commit

Permalink
update CFLAGS from ndk-build output
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupan committed Aug 19, 2012
1 parent 02ee57f commit ef804d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compile-gmp-x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export LIBGMPXX_LDFLAGS='-avoid-version'

################################################################################################################

BASE_CFLAGS='-O2 -pedantic -fomit-frame-pointer'
# base CFLAGS set from ndk-build output
BASE_CFLAGS='-O2 -pedantic -Wa,--noexecstack -fomit-frame-pointer -ffunction-sections -funwind-tables -fstrict-aliasing -funswitch-loops -finline-limit=300'

# x86, CFLAGS set according to 'CPU Arch ABIs' in the r8b documentation
export CFLAGS="${BASE_CFLAGS} -march=i686 -msse3 -mstackrealign -mfpmath=sse"
Expand Down
2 changes: 1 addition & 1 deletion x86/gmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@ enum

/* Define CC and CFLAGS which were used to build this version of GMP */
#define __GMP_CC "i686-linux-android-gcc -std=gnu99"
#define __GMP_CFLAGS "-O2 -pedantic -fomit-frame-pointer -march=i686 -msse3 -mstackrealign -mfpmath=sse"
#define __GMP_CFLAGS "-O2 -pedantic -Wa,--noexecstack -fomit-frame-pointer -ffunction-sections -funwind-tables -fstrict-aliasing -funswitch-loops -finline-limit=300 -march=i686 -msse3 -mstackrealign -mfpmath=sse"

/* Major version number is the value of __GNU_MP__ too, above and in mp.h. */
#define __GNU_MP_VERSION 5
Expand Down
Binary file modified x86/libgmp.so
Binary file not shown.

0 comments on commit ef804d8

Please sign in to comment.