summaryrefslogtreecommitdiff
path: root/rts/package.conf.in
diff options
context:
space:
mode:
authorAlp Mestanogullari <alp@well-typed.com>2018-09-12 18:06:02 -0400
committerBen Gamari <ben@smart-cactus.org>2018-09-12 18:06:44 -0400
commit900c47f88784b91517c00be3e1087322e62f698e (patch)
tree7d599df22acf069948988607f474708cb3441e26 /rts/package.conf.in
parent5c48c41239ee2a6228ff469cab8e06763d485c77 (diff)
downloadhaskell-900c47f88784b91517c00be3e1087322e62f698e.tar.gz
rts/Printer.c: always define the findPtr symbol
It was previously only defined (and therefore shipped) when DEBUG is defined. This patch defines it regardless of DEBUG. This will help fix hadrian on OS X [1]. [1]: https://github.com/snowleopard/hadrian/issues/614 Test Plan: The error from hadrian#614 is gone Reviewers: bgamari, erikd, simonmar Reviewed By: simonmar Subscribers: rwbarton, carter Differential Revision: https://phabricator.haskell.org/D5138
Diffstat (limited to 'rts/package.conf.in')
-rw-r--r--rts/package.conf.in4
1 files changed, 0 insertions, 4 deletions
diff --git a/rts/package.conf.in b/rts/package.conf.in
index b5ed26d39e..b6dac767fb 100644
--- a/rts/package.conf.in
+++ b/rts/package.conf.in
@@ -174,11 +174,9 @@ ld-options:
#if WORD_SIZE_IN_BITS == 64
, "-Wl,-u,_hs_atomicwrite64"
#endif
-#if defined(DEBUG)
/* This symbol is useful in gdb, but not referred to anywhere,
* so we need to force it to be included in the binary. */
, "-Wl,-u,_findPtr"
-#endif
#else
"-Wl,-u,base_GHCziTopHandler_runIO_closure"
, "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"
@@ -277,12 +275,10 @@ ld-options:
#if WORD_SIZE_IN_BITS == 64
, "-Wl,-u,hs_atomicwrite64"
#endif
-#if defined(DEBUG)
/* This symbol is useful in gdb, but not referred to anywhere,
* so we need to force it to be included in the binary. */
, "-Wl,-u,findPtr"
#endif
-#endif
/* Pick up static libraries in preference over dynamic if in earlier search
* path. This is important to use the static gmp in preference on Mac OS.