summaryrefslogtreecommitdiff
path: root/rules/distdir-opts.mk
Commit message (Collapse)AuthorAgeFilesLines
* Set $1_$2_SplitSections in distdir-opts.mk not build-package.mkReid Barton2017-02-231-1/+19
| | | | | | | | | | | | | | | | | | | | | | | After commit a50082c11 we use -ffunction-sections -fdata-sections for all C compilations, when $1_$2_SplitSections is set. But that variable was set in build-package.mk which is not run for the RTS. As a result the RTS was not being split, leading to larger binaries. This commit fixes RTS splitting by moving the definition of $1_$2_SplitSections to distdir-opts.mk, which is run for the RTS (and also from build-package.mk). Test Plan: manual ./validate and check that RTS and base .c files are split, but not object files in the compiler Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie, snowleopard, olsner Differential Revision: https://phabricator.haskell.org/D3137
* Omit unnecessary linker flagsSimon Marlow2016-11-031-5/+0
| | | | | | | | | | | | | | | | | | | | | Summary: This omits -L and -l flags from the linker command line that shouldn't be necessary because GHC will already add them via the -package-id flags we pass. This also reverts part of 90538d86af579595987826cd893828d6f379f35a that rearranges the linker command line and causes some knock-on problems (see D2618). Test Plan: validate (need to validate on Windows too) Reviewers: Phyx, bgamari, niteria, austin, erikd Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2639 GHC Trac Issues: #12738
* Updates to handle new CabalEdward Z. Yang2016-06-301-3/+3
| | | | | | | | | | | | | | | | | | Specifically per-component macros and multiple libraries. Contains Cabal submodule update. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin, bgamari Reviewed By: austin, bgamari Subscribers: hvr, thomie Differential Revision: https://phabricator.haskell.org/D2059
* Build system: delete half-baked Cygwin supportThomas Miedema2015-08-201-17/+1
| | | | | | | | | | | | | | | | | | | We only support building GHC on mys2 nowadays, see https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows. This (partially) reverts various commits from a few years ago, among which: * 5775d5142da227d65fb86994d363eb16841ee642 "Add OSTYPE build-system variable, and use it" * 3fb8c431824aa2f3bd979e35d1a283546fcfbe74 "Fix building libgmp on cygwin" * cdbb4720c424500adb57cbbef69721d0b039fa46 "Fix cmd invocation by libffi cuild system on Windows 7 cygwin" * e8121501ee3549a35e954726ccfd871ac9d51f83 "Fix dblatex and xml* tool detection on Windows" Reviewed by: austin, Phyx Differential Revision: https://phabricator.haskell.org/D1155
* Use the gold linker for linux/ARM and android/ARM targets.Erik de Castro Lopo2015-03-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #8976 and #9873 by making use of the Binutils ld.gold linker explicit whenever the target is linux/ARM or android/ARM. This does not affect iOS where Apple provides its own linker. In order to achieve this, we need to add `-fuse-ld=gold` to the SettingsCCompilerLinkFlags setting and set SettingsLdCommand to `ld.gold` (or `${target}-ld.gold` when cross-compiling). In addition, simplifying the use of `$(CONF_GCC_LINKER_OPTS_STAGEn)`. This patch was tested by ensuring that the following worked as expected: * Native builds on linux/x86_64 (nothing changed). * Native builds on linux/arm (and uses the gold linker). * Linux to linux/arm cross compiles (and uses the cross gold linker). Contributions by Ben Gamari, Joachim Breitner and Reid Barton. Reviewers: nomeata, bgamari, austin, rwbarton Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D715 GHC Trac Issues: #8976 #9873
* Add -I$1/$2/build/autogen to $1_$2_DIST_CC_OPTSHerbert Valerio Riedel2014-12-071-0/+1
| | | | | This is closer to how `cabal` behaves and is required for cbits to be able to `#include "cabal_macros.h"`
* Globally replace "hackage.haskell.org" with "ghc.haskell.org"Simon Marlow2013-10-011-2/+2
|
* pass the correct -Dxxx_HOST_ARCH and -Dxxx_HOST_OS to hsc2hs; Fixes #7761.Ian Lynagh2013-04-211-2/+0
| | | | Patch from Stephen Blackheath.
* Follow build system changes in integer-gmpIan Lynagh2013-04-201-0/+4
| | | | Also a couple of other fixes and sanity checks along the way.
* Fix building when $(CC_STAGE0) contains spacesIan Lynagh2013-03-191-2/+2
| | | | Spotted by Bill Tutt
* Fix construction of ALL_ALEX_OPTS and ALL_AS_OPTSMax Bolingbroke2013-03-101-1/+1
| | | | Signed-off-by: David Waern <david.waern@gmail.com>
* Give hsc2hs different options in different stages; fixes #7705Ian Lynagh2013-03-021-2/+3
| | | | Based on patch from Stephen Blackheath.
* Split non-way-specific variables off from distdir-way-opts into distdir-optsIan Lynagh2013-02-211-0/+111
| | | | | The hsc2hs, alex and happy options variables are now also non-way-specific, as the files are shared between all ways.
* refactor *_OPTS settings in the build system; no functional changesSimon Marlow2009-09-091-78/+0
|
* add $(CONF_*_OPTS) for options that come from ./configure (fixes #3426)Simon Marlow2009-09-081-3/+6
|
* Don't mess up absolute INCLUDE_DIRSMatthias Kilian2009-08-261-2/+4
| | | | | | | | When there are some absolute include dirs, don't create arguments like -Ilibraries/base//usr/local/include. I need this fix for injecting the iconv include dir (which is /usr/local/include on OpenBSD) into the build of libraries/base.
* Temporarily turn off unused-do-bind warnings for the time packageIan Lynagh2009-07-181-1/+2
|
* Add a header to all build system files:Simon Marlow2009-04-281-0/+12
| | | | | | | | | | | | | | # ----------------------------------------------------------------------------- # # (c) 2009 The University of Glasgow # # This file is part of the GHC build system. # # To understand how the build system works and how to modify it, see # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying # # -----------------------------------------------------------------------------
* GHC new build system megapatchIan Lynagh2009-04-261-0/+60