tce-load -i compiletc intltool glib2-dev gobject-introspection-dev dbus-dev libdaemon

wget https://github.com/lathiat/avahi/releases/download/v0.8/avahi-0.8.tar.gz
wget https://www.linuxfromscratch.org/patches/blfs/svn/avahi-0.8-ipv6_race_condition_fix-1.patch

cd avahi-0.8

patch -Np1 -i ../avahi-0.8-ipv6_race_condition_fix-1.patch

sed -i '426a if (events & AVAHI_WATCH_HUP) { client_free(c); return; }' avahi-daemon/simple-protocol.c

CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static --with-distro=none --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 --disable-pygtk --disable-gdbm --disable-mono --with-avahi-user=tc --with-avahi-group=staff --with-avahi-priv-access-group=staff --with-autoipd-user=tc --with-autoipd-group=staff --enable-compat-libdns_sd --disable-python --enable-introspection=yes --disable-libevent --disable-monodoc --with-systemdsystemunitdir=no --disable-qt5

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make [0m 25.43s]
sudo make install

 ---{ avahi 0.8 }---

    prefix:                                    /usr/local
    sysconfdir:                                ${prefix}/etc
    localstatedir:                             /var
    avahi socket:                              /run/avahi-daemon/socket
    dbus-1 system.d dir:                       ${prefix}/etc/dbus-1/system.d
    dbus-1 version:                            1.12.20
    dbus-1 system socket:                      unix:path=/var/run/dbus/system_bus_socket
    C Compiler:                                gcc -flto -march=i486 -mtune=i686 -Os -pipe
    CFLAGS:                                    -g -O2 -fstack-protector -std=c99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing
    Enable GLIB:                               yes
    Enable GLIB GObject:                       yes
    Enable GObject Introspection:              yes
    Enable GTK 2.0:                            no
    Enable GTK 3.0:                            no
    Enable D-Bus:                              yes
    With XML:                                  expat
    Enable GDBM:                               no
    Enable DBM:                                no
    Enable libdaemon:                          yes
    Enable Python:                             no
    Enable pygobject:                          no
    Enable python-dbus:                        no
    Enable QT3:                                no
    Enable QT4:                                no
    Enable QT5:                                no
    Enable Mono:                               no
    Enable Monodoc:                            no
    Distribution/OS:                           none
    User for avahi-daemon:                     tc
    Group for avahi-daemon:                    staff
    Priviliged access group for Avahi clients: staff
    User for avahi-autoipd:                    tc
    Group for avahi-autoipd:                   staff
    Enable chroot():                           no
    Enable Linux inotify:                      yes
    Enable stack-smashing protection:          yes
    systemd unit directory:                    no

    Building libavahi-core              yes
    Building avahi-daemon:              yes
    Building avahi-dnsconfd:            yes
    Building libavahi-client:           yes
    Building avahi-utils:               yes
    Building avahi-python:              no   (You need python, pygobject and python-dbus!)
    Building libavahi-glib:             yes
    Building libavahi-gobject:          yes
    Building avahi-discover-standalone: no
    Building libavahi-qt3:              no
    Building libavahi-qt4:              no
    Building libavahi-qt5:              no
    Building avahi-sharp:               no
    Building avahi-compat-libdns_sd:    yes
    Building avahi-compat-howl:         no
    Building tests:                     no
    Building avahi-core documentation:  no
    Building avahi-autoipd:             yes
    Building libavahi-ui:               no
    Building libavahi-libevent:         no