summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Boespflug <m@tweag.io>2018-07-28 07:33:13 +0200
committerBen Gamari <ben@smart-cactus.org>2018-07-31 11:48:19 -0400
commitcb8efe708c57e5c91c592956de7e58d2c5ca5065 (patch)
tree993d1fe3cd73654e68385d721660b458352d155d
parent123aeb916cba93018039e583d42408dae80a6dc9 (diff)
downloadhaskell-cb8efe708c57e5c91c592956de7e58d2c5ca5065.tar.gz
doc: Fix command for creating a shared library.
The previous command did not work. The `-o` flag was missing. Moreover, without `-dynamic`, the `-shared` flag will raise obscure link errors because GHC will try to use static objects when creating the shared library.
-rw-r--r--docs/users_guide/packages.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/users_guide/packages.rst b/docs/users_guide/packages.rst
index 7a54b4a8bf..632162f6c8 100644
--- a/docs/users_guide/packages.rst
+++ b/docs/users_guide/packages.rst
@@ -1056,7 +1056,7 @@ extra indirection).
.. code-block:: sh
- ghc -shared libHSfoo-1.0-ghcGHCVersion.so A.o B.o C.o
+ ghc -shared -dynamic -o libHSfoo-1.0-ghcGHCVersion.so A.o B.o C.o
Using GHC's version number in the shared object name allows different
library versions compiled by different GHC versions to be installed