Skip to content

Commit

Permalink
python25: build with -fwrapv
Browse files Browse the repository at this point in the history
Fixes #7.

Signed-off-by: Jack Nagel <[email protected]>
  • Loading branch information
jacknagel committed May 16, 2012
1 parent 5489ec4 commit 551398b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python25.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ def validate_options
end

def install
# Python 2.5-2.7 requires -fwrapv for proper Decimal division with Clang. See:
# https://github.com/mxcl/homebrew/pull/10487
# http://stackoverflow.com/questions/7590137/dividing-decimals-yields-invalid-results-in-python-2-5-to-2-7
# https://trac.macports.org/changeset/87442
ENV.append 'EXTRA_CFLAGS', '-fwrapv'

validate_options

args = ["--prefix=#{prefix}"]
Expand Down

0 comments on commit 551398b

Please sign in to comment.