[GHC] #9983: configure script invokes ghc with LDFLAGS during cross-builds
GHC
ghc-devs at haskell.org
Tue Jan 13 20:56:35 UTC 2015
#9983: configure script invokes ghc with LDFLAGS during cross-builds
-------------------------------------+-------------------------------------
Reporter: newsham | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 7.8.4
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Building GHC | Unknown/Multiple
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by newsham):
Besides using LDFLAGS for ghc, configure seems to expect to use the
following settings for building binaries on the build host that can be run
on the build host: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS. Defining any of
these to target-appropriate settings causes configure to fail early with:
checking whether the C compiler works... no
or
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
This includes builds in which --host and --build and --target were all
specified where --target is a different value, and --host and --build are
the same values.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9983#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list