gmp/ghc.mk's use of TARGETPLATFORM and BUILDPLATFORM is wrong
libraries/integer-gmp/gmp/ghc.mk invokes libgmp's configure script with the options
--host=$(TARGETPLATFORM) --build=$(BUILDPLATFORM)
Using TARGETPLATFORM is wrong, as it is the GHC-munged target triple. For example if the triple passed to the top-level configure script was --target=aarch64-apple-darwin14 (for iPhone), TARGETPLATFORM will be aarch64-apple-ios, which configure does not understand.
Instead of TARGETPLATFORM we should use TargetPlatformFull. I don't think we have a corresponding variable for BUILDPLATFORM, so we should add one if it's important.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |