tce-load -i compiletc automake libtool-dev intltool json-c-dev kmod-dev

https://github.com/pmem/ndctl/archive/v67.tar.gz

cd ndctl-67

./autogen.sh

ndctl/lib/libndctl.c
#include <sys/sysmacros.h>

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --disable-docs --without-bash --without-systemd --without-keyutils

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

make [0m 10.42s]
make install

        ndctl 67+
        =====

        prefix:                 /usr/local
        sysconfdir:             ${prefix}/etc
        libdir:                 ${exec_prefix}/lib
        includedir:             ${prefix}/include

        compiler:               gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe
        cflags:                 -g -O2
        ldflags:                

        logging:                yes
        debug:                  no
