unifdef-2.12

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-1303

### Chapter 13. Programming

- Prev

  Tk-8.6.18

- Next

  Vala-0.56.19

- Up
- Home

# unifdef-2.12

## Introduction to unifdef

The unifdef package contains a utility that is useful for removing preprocessor conditionals from code.

### Note

This package is known to build and work properly using an LFS 13.1 platform.

### Package Information

- 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

## Installation of unifdef

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: LC_ALL=C make test.

Finally, finish the installation as the `root` user:

    make prefix=/usr install

## Contents

Installed Programs: unifdef and unifdefall
Installed Libraries: None
Installed Directories: None

### Short Descriptions

unifdef | removes preprocessor conditionals from code
unifdefall | removes preprocessor conditionals from code across a whole tree

- Prev

  Tk-8.6.18

- Next

  Vala-0.56.19

- Up
- Home