From cb8efe708c57e5c91c592956de7e58d2c5ca5065 Mon Sep 17 00:00:00 2001 From: Mathieu Boespflug Date: Sat, 28 Jul 2018 07:33:13 +0200 Subject: 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. --- 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 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 -- cgit v1.2.1