Build glibmm with LTO

In combination with https://github.com/desktop-app/cmake_helpers/pull/126 gets rid of unused glib symbols
This commit is contained in:
Ilya Fedin 2021-09-19 09:30:32 +04:00 committed by John Preston
parent 890a126423
commit 4bc4584868
1 changed files with 5 additions and 1 deletions

View File

@ -646,7 +646,11 @@ WORKDIR glibmm
RUN git apply ../patches/glibmm.patch
ENV ACLOCAL_PATH="/usr/local/share/aclocal"
RUN NOCONFIGURE=1 ./autogen.sh
RUN ./configure --enable-maintainer-mode --enable-static --disable-documentation
RUN CC=\"gcc -flto\" CXX=\"g++ -flto\" AR=gcc-ar RANLIB=gcc-ranlib ./configure \
--enable-maintainer-mode \
--enable-static \
--disable-documentation
RUN make -j$(nproc)
RUN make DESTDIR="$LibrariesPath/glibmm-cache" install