[GHC] #10912: Support for out of the box static linking

GHC ghc-devs at haskell.org
Sun Nov 8 23:21:39 UTC 2015


#10912: Support for out of the box static linking
-------------------------------------+-------------------------------------
        Reporter:  crb002            |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Package system    |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by L29Ah):

 Yeah, that would be a nice thing to have. Now ghc build system is pissed
 given
 {{{
 GhcStage2HcOpts = -optl-static -optl-pthread -static
 }}}

 {{{
 /home/l29ah/projects/climate/buildroot-musl/output/host/usr/bin/../lib/gcc
 /arm-buildroot-linux-musleabihf/4.9.3/../../../../arm-buildroot-linux-
 musleabihf/bin/ld.gold: error: cannot find
 -lHStransformers-0.4.3.0-ghc7.11.20151108
 /home/l29ah/projects/climate/buildroot-musl/output/host/usr/bin/../lib/gcc
 /arm-buildroot-linux-musleabihf/4.9.3/../../../../arm-buildroot-linux-
 musleabihf/bin/ld.gold: error: cannot find -lHStemplate-
 haskell-2.11.0.0-ghc7.11.20151108
 /home/l29ah/projects/climate/buildroot-musl/output/host/usr/bin/../lib/gcc
 /arm-buildroot-linux-musleabihf/4.9.3/../../../../arm-buildroot-linux-
 musleabihf/bin/ld.gold: error: cannot find
 -lHSpretty-1.1.2.0-ghc7.11.20151108
 /home/l29ah/projects/climate/buildroot-musl/output/host/usr/bin/../lib/gcc
 /arm-buildroot-linux-musleabihf/4.9.3/../../../../arm-buildroot-linux-
 musleabihf/bin/ld.gold: error: cannot find
 -lHSprocess-1.4.0.0-ghc7.11.20151108
 …
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10912#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list