summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Barton <rwbarton@gmail.com>2017-02-03 17:00:02 -0500
committerReid Barton <rwbarton@gmail.com>2017-02-03 17:00:02 -0500
commit45a9b9923ce6f093fb27c9e7bf82b95607db9869 (patch)
treede1ab1f805c70b7e2d0219057755488fce1e69e7
parentafa409faffba6c340db9ee20f7fa2634ac4f8cd0 (diff)
downloadhaskell-wip/rwbarton-supports-split-sections.tar.gz
Make split sections by default work againwip/rwbarton-supports-split-sections
Commit 266a9dc4c changed = to := in one place in mk/config.mk.in. This broke SupportsSplitSections because the variable LdIsGNULd that it depends on is not defined until later in the file.
-rw-r--r--mk/config.mk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index f4508afb25..35ff04cb0e 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -359,7 +359,7 @@ SplitObjs = $(if $(and $(filter YES,$(SupportsSplitObjs)),\
# This is not supported on Darwin (where you can use subsections-via-symbols
# instead) and Windows is not yet working. (See #11445 and related tickets.)
OsSupportsSplitSections=$(if $(filter $(TargetOS_CPP),mingw32 darwin),NO,YES)
-SupportsSplitSections :=$(if $(and $(filter YES,$(OsSupportsSplitSections)),\
+SupportsSplitSections=$(if $(and $(filter YES,$(OsSupportsSplitSections)),\
$(filter YES,$(LdIsGNULd))),YES,NO)
SplitSections ?= $(SupportsSplitSections)