libunistring-1.4.1

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 4. Networking

- Prev

  make-ca-1.16.1

- Next

  libidn2-2.3.8

- Up
- Home

# libunistring-1.4.1

## Introduction to libunistring

libunistring is a library that provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.

### Note

This may take a while to build. Feel free to do something else while this is building.

- Download: https://ftpmirror.gnu.org/gnu/libunistring/libunistring-1.4.1.tar.xz

## Installation of libunistring

First, make a fix required by glibc-2.43 or later:

    sed -r '/_GL_EXTERN_C/s/w?memchr|bsearch/(&)/' \
        -i $(find -name \*.in.h)

Install libunistring by running the following commands:

    ./configure --prefix=/usr    \
                --disable-static \
                --docdir=/usr/share/doc/libunistring-1.4.1 &&

    make

Now, as the `root` user:

    make install

## lib32 Installation of lib32-libunistring

Install lib32-libunistring by running the following commands:

    make distclean &&
    CC="gcc -m32" CXX="g++ -m32"         \
    PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
    ./configure --prefix=/usr            \
                --libdir=/usr/lib32      \
                --host=i686-pc-linux-gnu \
                --disable-static &&

    make

Now as the `root` user:

    make DESTDIR=$PWD/DESTDIR install     &&
    cp -vr DESTDIR/usr/lib32/* /usr/lib32 &&
    rm -rf DESTDIR                        &&
    ldconfig

## Command Explanations

### Note

Run ./configure --help for a full list of options.

`--disable-static`: This switch prevents installation of static versions of the libraries.

## Contents

Installed Programs: None
Installed Libraries: libunistring
Installed Directory: /usr/include/unistring and /usr/share/doc/libunistring-1.4.1

### Short Descriptions

libunistring | provides the unicode string library API

- Prev

  make-ca-1.16.1

- Next

  libidn2-2.3.8

- Up
- Home