tce-load -i libgcrypt-dev gobject-introspection-dev intltool vala-dev

cd libsecret-0.18.5

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-manpages

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

make
sudo make install

CFLAGS: -g -O2 -pthread -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include  -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38            -Wall -Wmissing-declarations           -Wmissing-prototypes -Wnested-externs -Wpointer-arith           -Wdeclaration-after-statement -Wformat=2 -Winit-self -Waggregate-return -Wmissing-include-dirs -Wundef -Wno-error -g

OPTIONS:
  libgcrypt:     yes
  vala:          yes
  Debug:         default
  Coverage:      no
  Manual Page:   no