diff options
author | Peter Trommler <ptrommler@acm.org> | 2016-01-15 13:25:38 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-01-15 13:25:53 +0100 |
commit | c6a3e2277aef2d3b8a472cc82542c9b22cea86bf (patch) | |
tree | b63176e90f862592d759282702140711cddd29d3 /testsuite/tests/ghci/linking/dyn/all.T | |
parent | faf3f96f6e08c7e5bebc974f7e71580df0c11241 (diff) | |
download | haskell-c6a3e2277aef2d3b8a472cc82542c9b22cea86bf.tar.gz |
Link command line libs to temp so
Symbols in libraries specified on the GHCis command line are
not available to compiled modules because shared libraries
are loaded with local scope. So we link all libraries specified
on the command line into each temporary shared library.
Test Plan: validate
Reviewers: simonmar, hvr, austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1631
GHC Trac Issues: #10458
Diffstat (limited to 'testsuite/tests/ghci/linking/dyn/all.T')
-rw-r--r-- | testsuite/tests/ghci/linking/dyn/all.T | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/linking/dyn/all.T b/testsuite/tests/ghci/linking/dyn/all.T index e5b40d4751..eb044fc44d 100644 --- a/testsuite/tests/ghci/linking/dyn/all.T +++ b/testsuite/tests/ghci/linking/dyn/all.T @@ -27,3 +27,10 @@ test('T10955dyn', [extra_clean(['bin_dyn/*', 'bin_dyn'])], run_command, ['$MAKE -s --no-print-directory compile_libAB_dyn']) + +test('T10458', + [unless(doing_ghci, skip), + extra_clean(['libAS.*']), + pre_cmd('$MAKE -s --no-print-directory compile_libT10458'), + extra_hc_opts('-L$PWD/T10458dir -lAS')], + ghci_script, ['T10458.script']) |