.. _spkg_gc:

gc: The Boehm-Demers-Weiser conservative garbage collector
==========================================================

Description
-----------

The Boehm-Demers-Weiser conservative garbage collector.

License
-------

-  Permissive BSD + GPL 2.0+


Upstream Contact
----------------

Webpage: http://www.hboehm.info/gc/

Email List: bdwgc@lists.opendylan.org

Special Update/Build Instructions
---------------------------------

None.

Patches
~~~~~~~

-  cygwin64.patch: let libgc build on Cygwin64.

Type
----

standard


Dependencies
------------

- :ref:`spkg_libatomic_ops`

Version Information
-------------------

package-version.txt::

    8.0.4


Equivalent System Packages
--------------------------

arch:

.. CODE-BLOCK:: bash

    $ sudo pacman -S  gc


conda:

.. CODE-BLOCK:: bash

    $ conda install  bdw-gc


cygwin:

.. CODE-BLOCK:: bash

    $ apt-cyg install libgc-devel


Debian/Ubuntu:

.. CODE-BLOCK:: bash

    $ sudo apt-get install  libgc-dev


Fedora/Redhat/CentOS:

.. CODE-BLOCK:: bash

    $ sudo yum install  gc gc-devel


freebsd:

.. CODE-BLOCK:: bash

    $ sudo pkg install devel/boehm-gc devel/boehm-gc-threaded


gentoo:

.. CODE-BLOCK:: bash

    $ sudo emerge dev-libs/boehm-gc


homebrew:

.. CODE-BLOCK:: bash

    $ brew install bdw-gc


macports:
install the following packages: boehmgc

opensuse:

.. CODE-BLOCK:: bash

    $ sudo zypper install "pkgconfig(bdw-gc)"


slackware:

.. CODE-BLOCK:: bash

    $ sudo slackpkg install gc


void:

.. CODE-BLOCK:: bash

    $ sudo xbps-install  gc-devel


See https://repology.org/project/boehm-gc/versions


If the system package is installed, ./configure will check whether it can be used.

