1. 08 Aug, 2007 1 commit
  2. 20 Jun, 2007 1 commit
  3. 05 Jun, 2007 1 commit
  4. 31 May, 2007 1 commit
    • Ian Lynagh's avatar
      Rework the build system a bit · 430453c5
      Ian Lynagh authored
      Key changes:
      * Always build as if BIN_DIST is 1. BIN_DIST is thus removed.
      * Libraries are configured with prefix set to $$topdir rather than $(prefix)
  5. 27 Mar, 2007 1 commit
  6. 07 Dec, 2006 1 commit
    • wolfgang.thaller@gmx.net's avatar
      x86_64: support PIC and therefore, Mac OS X in the NCG · 28c556a5
      wolfgang.thaller@gmx.net authored
      Supporting x86_64-apple-darwin in the NCG basically boils down to supporting
      position-independent code in the NCG.
      PIC code works almost exactly the same as on x86_64-linux, while position-dependent
      code is not supported at all.
      This patch implements -fPIC for x86_64-linux, too, but that is untested.
  7. 10 Nov, 2006 1 commit
  8. 09 Nov, 2006 2 commits
  9. 08 Sep, 2006 1 commit
    • Simon Marlow's avatar
      Add source code links to Haddock docs · 8bac0130
      Simon Marlow authored
      Right now we can only manage to add a source code link for the module,
      but that's better than nothing.
      I had to put the list of core packages in a Makefile variable,
      $(CorePackages), so we'll have to be careful to keep this up to date.
      (I could have slurped it out of libraries/core-packages with $(shell),
      but that's ugly and really slow on Windows).
      There are a couple of new tweakables: CorePackageSourceURL and
      ExtraPackageSourceURL in config.mk.in, set these to the appropriate
      patterns for generating source links.
      (when we merge this patch onto the HEAD we'll have to tweak these
      Unfortunately it still doesn't work for all the modules, because
      modules compiled without -cpp don't get any #line directives.  More
      hackery required...
  10. 18 Sep, 2006 1 commit
  11. 07 Sep, 2006 1 commit
    • Simon Marlow's avatar
      Remove the -optP-P from .raw-hs generation · 9de82d47
      Simon Marlow authored
      We need the #line directives left in, so that Haddock can figure out
      what the name of the original source file was called, which is
      necessary for generating source links.  You probably now need an
      updated Haddock to generate HTML from the libraries, but a release
      will be forthcoming shortly.
  12. 11 Aug, 2006 1 commit
  13. 25 Jul, 2006 1 commit
  14. 28 Apr, 2006 1 commit
  15. 07 Apr, 2006 1 commit
    • Simon Marlow's avatar
      Reorganisation of the source tree · 0065d5ab
      Simon Marlow authored
      Most of the other users of the fptools build system have migrated to
      Cabal, and with the move to darcs we can now flatten the source tree
      without losing history, so here goes.
      The main change is that the ghc/ subdir is gone, and most of what it
      contained is now at the top level.  The build system now makes no
      pretense at being multi-project, it is just the GHC build system.
      No doubt this will break many things, and there will be a period of
      instability while we fix the dependencies.  A straightforward build
      should work, but I haven't yet fixed binary/source distributions.
      Changes to the Building Guide will follow, too.
  16. 22 Jan, 2006 1 commit
  17. 13 May, 2005 1 commit
  18. 29 Apr, 2005 1 commit
    • krasimir's avatar
      [project @ 2005-04-29 13:09:27 by krasimir] · 9f0cc714
      krasimir authored
      Small fixes that adds chm and HxS targets to the build system. The former is used
      to build all documentation in HtmlHelp format while the letter uses HtmlHelp2 format.
  19. 15 Apr, 2005 1 commit
  20. 29 Mar, 2005 2 commits
  21. 24 Mar, 2005 1 commit
    • sof's avatar
      [project @ 2005-03-24 18:44:16 by sof] · c0cca2ea
      sof authored
      SRC_HC_OPTS: only add -ignore-package if supported by underlying GHC.
                   (reqd to be able to compile greencard/lib, hdirect/(com)lib with
      	     non-cutting edge GHCen.)
      Merge to STABLE.
  22. 03 Mar, 2005 1 commit
  23. 10 Feb, 2005 1 commit
  24. 09 Feb, 2005 1 commit
  25. 08 Feb, 2005 1 commit
  26. 23 Jan, 2005 1 commit
    • panne's avatar
      [project @ 2005-01-23 17:05:31 by panne] · fa8246c7
      panne authored
      In the installed package.conf, all includeDirs were empty, so no GHC/package
      headers were found. This commit fixes that (in a hopefully correct way).
  27. 20 Jan, 2005 1 commit
    • simonmar's avatar
      [project @ 2005-01-20 14:22:19 by simonmar] · c830ae13
      simonmar authored
      Fill in the haddock-interfaces and haddock-html fields in the
      package.conf files.
      To do this I had to make some changes:
        - haddock-interfaces requires the value of $(datadir).  We can't
          just plug this in, because $(datadir) might change at install-time
          (eg. a Windows installer can be placed anywhere, as can a Unix
          binary .tar.gz distribution).  The current trick is for the
          compiler to splice in the value of $libdir in package.conf at
          runtime.  So we could extend this mechanism and tell the compiler
          the value of $datadir via a command-line option, but that seems
          On Windows, $datadir==$libdir, so we don't need any changes:
          package.conf still uses $libdir, and a Windows installation is
          independent of its absolute location.  Even 'make install' on
          Windows should have this property.
          On Unix:
      	- for 'make install' and in-place execution, we just use
                absolute paths in package.conf
      	- for a binary dist, we generate a package.conf that refers
      	  to $libdir and $datadir, and splice in the values at
      	  install-time (distrib/Makefile-bin.in).
        - Also, I renamed $libdir to $topdir to more closely reflect its
          actual meaning.  This is somewhat malicious in that it will flush
          out all those clients using $libdir when they really shouldn't
          be :-)
  28. 14 Jan, 2005 1 commit
    • wolfgang's avatar
      [project @ 2005-01-14 08:01:26 by wolfgang] · 4f457f34
      wolfgang authored
      Dynamic Linking, Part 2:
      Hack the Makefiles to build dynamic libraries.
      This allows you to actually use dynamic libraries to greatly reduce binary
      sizes on Darwin/PowerPC and on powerpc64-linux (for now).
      To use this, add the following to your build.mk
      GhcLibHcOpts+=-fPIC -dynamic
      GhcRtsHcOpts+=-fPIC -dynamic
      (You can leave out the last three lines on powerpc64-linux).
      Then, to compile a program using dynamic libraries, pass the -dynamic option to GHC.
      To make GHCi use the dynamic libraries instead of .o files, just delete the HS*.o files.
      The dynamic library files are named libHSfoo_dyn.dylib or libHSfoo_dyn.so.
      Note that the dynamic and static libraries are build from the same .o files,
      but we really want to build the static libraries with SplitObjs and without
      -fPIC -dynamic to achieve better code size and performance.
          When looking for a library, look for HSfoo.o first (as before),
          then look for libHSfoo_dyn.[so/dylib] before looking for
          Main.dll_o and PrelMain.dll_o are dead, at least for now.
          When -dynamic is specified, add "_dyn" to all libraries specified in
          hs-libraries (not to the extra-libs).
          Never build libghccompat as a dynamic lib.
          if GhcBuildDylibs is set to YES, build dynamic libraries.
          When installing .dylibs (Darwin only), update the install_name to point
          to the final location.
          (Somebody please read Apple's documentation on what install_names are,
          and then comment on whether this is a useful feature or whether it should
          be done the "normal" unix way).
  29. 26 Nov, 2004 1 commit
    • simonmar's avatar
      [project @ 2004-11-26 16:19:45 by simonmar] · ef5b4b14
      simonmar authored
      Further integration with the new package story.  GHC now supports
      pretty much everything in the package proposal.
        - GHC now works in terms of PackageIds (<pkg>-<version>) rather than
          just package names.  You can still specify package names without
          versions on the command line, as long as the name is unambiguous.
        - GHC understands hidden/exposed modules in a package, and will refuse
          to import a hidden module.  Also, the hidden/eposed status of packages
          is taken into account.
        - I had to remove the old package syntax from ghc-pkg, backwards
          compatibility isn't really practical.
        - All the package.conf.in files have been rewritten in the new syntax,
          and contain a complete list of modules in the package.  I've set all
          the versions to 1.0 for now - please check your package(s) and fix the
          version number & other info appropriately.
        - New options:
      	-hide-package P    sets the expose flag on package P to False
      	-ignore-package P  unregisters P for this compilation
      	For comparison, -package P sets the expose flag on package P
              to True, and also causes P to be linked in eagerly.
              -package-name is no longer officially supported.  Unofficially, it's
      	a synonym for -ignore-package, which has more or less the same effect
      	as -package-name used to.
      	Note that a package may be hidden and yet still be linked into
      	the program, by virtue of being a dependency of some other package.
      	To completely remove a package from the compiler's internal database,
              use -ignore-package.
      	The compiler will complain if any two packages in the
              transitive closure of exposed packages contain the same
      	You *must* use -ignore-package P when compiling modules for
              package P, if package P (or an older version of P) is already
              registered.  The compiler will helpfully complain if you don't.
      	The fptools build system does this.
         - Note: the Cabal library won't work yet.  It still thinks GHC uses
           the old package config syntax.
      Internal changes/cleanups:
         - The ModuleName type has gone away.  Modules are now just (a
           newtype of) FastStrings, and don't contain any package information.
           All the package-related knowledge is in DynFlags, which is passed
           down to where it is needed.
         - DynFlags manipulation has been cleaned up somewhat: there are no
           global variables holding DynFlags any more, instead the DynFlags
           are passed around properly.
         - There are a few less global variables in GHC.  Lots more are
           scheduled for removal.
         - -i is now a dynamic flag, as are all the package-related flags (but
           using them in {-# OPTIONS #-} is Officially Not Recommended).
         - make -j now appears to work under fptools/libraries/.  Probably
           wouldn't take much to get it working for a whole build.
  30. 23 Nov, 2004 1 commit
    • ross's avatar
      [project @ 2004-11-23 12:35:06 by ross] · 46237e9c
      ross authored
      Make the X11 and HGL packages more independent, and pass configuration
      parameters to package.conf.in via header files.
      Also removed residual traces of OpenGL/GLUT/OpenAL from mk/config.mk.in
  31. 03 Nov, 2004 1 commit
  32. 02 Oct, 2004 1 commit
    • wolfgang's avatar
      [project @ 2004-10-02 15:12:48 by wolfgang] · 65fd4516
      wolfgang authored
      Deal with Apple's broken cpp 3.3 (you know, the one that inserts useless
      #pragma lines into it's output) by filtering it's output through
      grep -v.
      This shouldn't be a problem for other platforms, and it's much simpler
      than to make the parsers for ghc-pkg, genprimopcode and happy ignore
      those lines.
  33. 27 Mar, 2004 1 commit
  34. 24 Feb, 2004 1 commit
  35. 07 Feb, 2004 1 commit
  36. 23 Jan, 2004 1 commit
  37. 09 Jan, 2004 2 commits