The unifdef package contains a utility that is useful for removing preprocessor conditionals from code.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://dotat.at/prog/unifdef/unifdef-2.12.tar.gz
Download MD5 sum: b225312c110cd2600ca7166bd0419751
Download size: 88 KB
Estimated disk space required: 1.9 MB
Estimated build time: less than 0.1 SBU
First, fix a problem when building with gcc-15:
sed -i 's/constexpr/unifdef_&/g' unifdef.c
Now fix a problem if reinstalling the package:
sed -i 's/ln -s/ln -sf/' Makefile
Install unifdef by running the following commands:
make
To test the results, issue: make test.
Finally, finish the installation as the root
user:
make prefix=/usr install