[GHC] #5240: help GNU ld to use less memory when linking libraries compiled with -split-objs.
GHC
cvs-ghc at haskell.org
Mon Aug 6 01:36:02 CEST 2012
#5240: help GNU ld to use less memory when linking libraries compiled with -split-
objs.
-------------------------------+--------------------------------------------
Reporter: int-e | Owner: igloo
Type: feature request | Status: closed
Priority: high | Milestone: 7.4.1
Component: Compiler | Version: 7.0.3
Resolution: fixed | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-------------------------------+--------------------------------------------
Comment(by pgj):
Replying to [comment:18 igloo]:
> I don't think it's worth working around this in GHC
I think this is not a workaround as the linker flags should not indeed
passed when no linking is done. I do not think that the warning is bogus.
It is just a more fine-grained way to pass the flags only when they are
really needed.
> (a) it doesn't cause any real problems, just prints some warnings
...for every Haskell module, which -- as I wrote above -- triples the
number of the messages printed to the screen. I do not think that it is
good to see such messages all the time.
> (b) it can be solved by upgrading to a recent gcc.
It is not by accident that the FreeBSD base system does not have a more
recent GCC, folks here are moving to a Clang/LLVM instead. Of course, I
could use a newer GCC by adding it as a dependency for the port, but I was
trying to avoid this.
Anyways, since GCC is going to be removed from the base system in the next
major release, I shall switch to this solution soon... :-)
> I have just pushed a patch to fix the problem that `LdCmd` wasn't
getting defined in the bindist `configure.ac`, though. Thanks for spotting
that.
Great, thanks!
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5240#comment:19>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list