Check is a unit testing framework for C.
Prepare Check for 32-bit compilation:
PKG_CONFIG= ./configure --prefix=/tools \ --libdir=/tools/lib32 \ CC="gcc -m32"
The meaning of the configure parameter:
PKG_CONFIG=
This tells the configure script to ignore any pkg-config
options that may cause the system to try to link with
libraries not in the /tools
directory.
Build the package:
make
Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Check test suite anyway, issue the following command:
make check
Note that the Check test suite may take a relatively long (up to 4 SBU) time.
Install the package:
make install
Clean up the build directory before moving on to the next platform:
make clean
Prepare Check for x32 ABI compilation:
PKG_CONFIG= ./configure --prefix=/tools \ --libdir=/tools/libx32 \ CC="gcc -mx32"
The meaning of the configure parameter:
PKG_CONFIG=
This tells the configure script to ignore any pkg-config
options that may cause the system to try to link with
libraries not in the /tools
directory.
Build the package:
make
Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Check test suite anyway, issue the following command:
make check
Note that the Check test suite may take a relatively long (up to 4 SBU) time.
Install the package:
make install
Clean up the build directory before moving on to the next platform:
make clean
Prepare Check for 64-bit compilation:
PKG_CONFIG= ./configure --prefix=/tools
The meaning of the configure parameter:
PKG_CONFIG=
This tells the configure script to ignore any pkg-config
options that may cause the system to try to link with
libraries not in the /tools
directory.
Build the package:
make
Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Check test suite anyway, issue the following command:
make check
Note that the Check test suite may take a relatively long (up to 4 SBU) time.
Install the package:
make install