diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2018-06-14 11:37:05 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-06-14 11:37:12 -0400 |
commit | e4c41ec2b1f2f222c9c8a83ef64d4e566aa47a44 (patch) | |
tree | 8e8632f5528223abd144f6dba9cec778bab76eb4 /rts/rts.cabal.in | |
parent | 6f083b3df830a74e3d4c08f1b4a5204c4822c537 (diff) | |
download | haskell-e4c41ec2b1f2f222c9c8a83ef64d4e566aa47a44.tar.gz |
rts: Don't keep findPtr symbol alive if not -DDEBUG
Test Plan: Test with Hadrian
Reviewers: simonmar, snowleopard, erikd
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4846
Diffstat (limited to 'rts/rts.cabal.in')
-rw-r--r-- | rts/rts.cabal.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/rts.cabal.in b/rts/rts.cabal.in index d41135ddd3..ffa6282139 100644 --- a/rts/rts.cabal.in +++ b/rts/rts.cabal.in @@ -251,9 +251,11 @@ library "-Wl,-u,_hs_atomicwrite8" "-Wl,-u,_hs_atomicwrite16" "-Wl,-u,_hs_atomicwrite32" +#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 ld-options: "-Wl,-u,base_GHCziTopHandler_runIO_closure" @@ -324,9 +326,11 @@ library "-Wl,-u,hs_atomicwrite8" "-Wl,-u,hs_atomicwrite16" "-Wl,-u,hs_atomicwrite32" +#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 if os(osx) ld-options: "-Wl,-search_paths_first" |