mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
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:
parent
890a126423
commit
4bc4584868
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue