Set -faltivec in CFLAGS on Tiger
Setting -mcpu and -mtune on Tiger with gcc-4.2 exposes a bug in one of the system headers, causing certain builds to fail. This can be fixed by adding -faltivec to CFLAGS. See: http://trac.macports.org/ticket/34213
This commit is contained in:
parent
6f6b1111f0
commit
967fa41e41
@ -324,6 +324,9 @@ module Stdenv
|
||||
remove flags, /-msse4(\.\d)?/
|
||||
append flags, xarch unless xarch.empty?
|
||||
append flags, map.fetch(effective_arch, default)
|
||||
|
||||
# Works around a buggy system header on Tiger
|
||||
append flags, "-faltivec" if MacOS.version == :tiger
|
||||
end
|
||||
|
||||
# @private
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user