Skip to content

docs: Explain how to build only .dyn_o. #10984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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