[commit: ghc] master: doc: Fix command for creating a shared library. (cb8efe7)
git at git.haskell.org
git at git.haskell.org
Tue Jul 31 15:49:11 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/cb8efe708c57e5c91c592956de7e58d2c5ca5065/ghc
>---------------------------------------------------------------
commit cb8efe708c57e5c91c592956de7e58d2c5ca5065
Author: Mathieu Boespflug <m at tweag.io>
Date: Sat Jul 28 07:33:13 2018 +0200
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.
>---------------------------------------------------------------
cb8efe708c57e5c91c592956de7e58d2c5ca5065
docs/users_guide/packages.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/users_guide/packages.rst b/docs/users_guide/packages.rst
index 7a54b4a..632162f 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
More information about the ghc-commits
mailing list