Skip to content
Snippets Groups Projects
  1. Oct 01, 2013
  2. Jun 17, 2013
    • Austin Seipp's avatar
      Detect linker information at runtime. Fixes Trac #6063 · 71a194d8
      Austin Seipp authored
      
      Previously, we did ./configure time checks to see if 'GNU ld' supported
      certain options. If it does, we bake those options into the link step.
      See Trac #5240.
      
      Unfortunately, the linker we use at runtime can change for several
      reasons. One is that the user specifies -pgml 'foo'. The other is if
      /usr/bin/ld or whatnot changes from when GHC was built.  Those options
      mentioned earlier are specific to GNU ld, but many systems support GNU
      gold too. This is Trac #6063.
      
      So we need to check at runtime what linker we're using. This is actually
      a little bit complicated because we normally use the C compiler as our
      linker. Windows and OS X are also special here.
      
      Finally, this patch also unconditionally gives '--hash-size=31' and
      '--reduce-memory-overheads' to the system linker if it's GNU ld. These
      options have been supported for 8+ years from what I can see, and there
      are probably a lot of other reasons why GHC would not work with such an
      ancient binutils, all things considered.
      
      See Note [Run-time linker info] in SysTools for details. There are
      plenty of comments as well in the surrounding code.
      
      Signed-off-by: default avatarAustin Seipp <aseipp@pobox.com>
      71a194d8
  3. Apr 20, 2013
  4. Mar 18, 2013
  5. Feb 17, 2013
  6. Jan 30, 2013
  7. Jan 29, 2013
  8. Jan 27, 2013
  9. Nov 13, 2012
  10. Oct 11, 2012
  11. Oct 03, 2012
    • Ian Lynagh's avatar
      Build the dynamic way by default on Linux/amd64 · 898cb090
      Ian Lynagh authored
      This required various build system changes to get the build to go
      through.
      
      In the inplace shell wrappers, we set LD_LIBRARY_PATH to allow programs
      to find their libraries. In the future, we might change the inplace tree
      to be the same shape as an installed tree instead. However, this would
      mean changing the way we do installation, as currently we use cabal's
      installation methods to install the libraries, but that only works if
      the libraries are under libraries/foo/dist-install/build/..., rather
      than in inplace/lib/...
      898cb090
  12. Aug 08, 2012
  13. Aug 05, 2012
  14. May 30, 2012
  15. Feb 10, 2012
  16. Feb 02, 2012
  17. Jan 30, 2012
  18. Jan 14, 2012
  19. Jan 11, 2012
    • Ian Lynagh's avatar
      Use /usr/bin/gcc when making the OS X installer · 0b5e57e0
      Ian Lynagh authored
      On XCode 4.1, we use /usr/bin/gcc-4.2 as it makes better code than
      /usr/bin/gcc for us. However, gcc-4.2 doesn't exist in XCode 4.2, so we
      need to use /usr/bin/gcc there. As the installer can be used on either,
      we make it always use /usr/bin/gcc.
      0b5e57e0
  20. Jan 04, 2012
  21. Nov 27, 2011
  22. Oct 19, 2011
  23. Aug 02, 2011
  24. Aug 01, 2011
  25. Jul 13, 2011
  26. Jun 29, 2011
  27. Jun 22, 2011
  28. Apr 22, 2011
  29. Apr 21, 2011
  30. Mar 27, 2011
Loading