mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-22 16:26:52 +00: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
@ -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…
Reference in New Issue
Block a user