Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/cabal-project-description-file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,13 @@ Dynamic linking options
Build shared library. This implies a separate compiler run to
generate position independent code as required on most platforms.

``--enable-shared`` is enabled automatically if GHC is dynamically linked
(see ``ghc --info``'s ``GHC Dynamic`` field)
or you request to build dynamic executables.

If you want to build *only* dynamic object files,
you also have to pass ``--disable-library-vanilla``.

The command line variant of this flag is ``--enable-shared`` and
``--disable-shared``.

Expand Down
8 changes: 6 additions & 2 deletions doc/setup-commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,12 @@ Miscellaneous options
Build shared library. This implies a separate compiler run to
generate position independent code as required on most platforms.

``--enable-shared`` is enabled automatically if GHC is dynamically linked or
you request to build dynamic executables.
``--enable-shared`` is enabled automatically if GHC is dynamically linked
(see ``ghc --info``'s ``GHC Dynamic`` field)
or you request to build dynamic executables.

If you want to build *only* dynamic object files,
you also have to pass ``--disable-library-vanilla``.

.. option:: --disable-shared

Expand Down
Loading