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

### Chapter 13. Programming

- Prev

  Tk-8.6.17

- 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

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### 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: 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.17

- Next

  Vala-0.56.19

- Up
- Home