MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« GC 64-bit HOME W3M »

GC 32-bit

Name: GC 32-bit
Summary: A library implementing memory garbage collection for C and C++
License: MIT
Version: 8.2.10
URL: https://github.com/bdwgc/bdwgc/releases/download/v8.2.10/gc-8.2.10.tar.gz

Average Build Time: less than 0.1 SBU
Used Install Space: 1.5 MiB

Configuration

To configure GC 32-bit for install into the build root, run the following commands:

make distclean
CC="gcc -m32 -march=i686" CXX="g++ -m32 -march=i686"    \
./configure --host=i686-pc-linux-gnu                    \
            --prefix=/usr                               \
            --libdir=/usr/lib                           \
            --libexecdir=/usr/lib                       \
            --docdir=/usr/share/doc/gc-8.2.10           \
            --enable-cplusplus                          \
            --disable-gcj                               \
            --enable-shared                             \
            --disable-static

Compilation and Installation

To compile GC 32-bit, run the following command:

make

Finally, to install GC 32-bit into the build tree, run the following commands:

make DESTDIR=$PWD/DESTDIR install
rm -fv DESTDIR/usr/lib/libcord.la
rm -fv DESTDIR/usr/lib/libgc.la
rm -fv DESTDIR/usr/lib/libgccpp.la
rm -fv DESTDIR/usr/lib/libgctba.la
cp -Rv DESTDIR/usr/lib/* /usr/lib/

Contents

See the contents section of the 64-bit build of GC for details.

Navigation    
« GC 64-bit HOME W3M »