Add flto to packages to be built (#5259)

* Add flto
This commit is contained in:
satmandu
2021-02-23 18:07:47 -05:00
committed by GitHub
parent 96af53ba17
commit fac2e84cbd
2 changed files with 20 additions and 16 deletions

View File

@@ -20,12 +20,14 @@ class Libgdiplus < Package
depends_on 'imake' => :build
def self.build
system "./configure #{CREW_OPTIONS} \
--with-libexif \
--with-libtiff \
--with-jpeg \
--with-libgif \
--with-x11"
system "CFLAGS='-flto=auto' CXXFLAGS='-flto=auto'
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--with-libexif \
--with-libtiff \
--with-jpeg \
--with-libgif \
--with-x11"
system "make"
end

View File

@@ -17,16 +17,18 @@ class Libwebp < Package
def self.build
system "env NOCONFIGURE=1 ./autogen.sh"
system "./configure #{CREW_OPTIONS} \
--enable-libwebpmux \
--enable-libwebpdemux \
--enable-libwebpdecoder \
--enable-libwebpextras \
--enable-sdl \
--enable-tiff \
--enable-jpeg \
--enable-png \
--enable-gif"
system "CFLAGS='-flto=auto' CXXFLAGS='-flto=auto'
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--enable-libwebpmux \
--enable-libwebpdemux \
--enable-libwebpdecoder \
--enable-libwebpextras \
--enable-sdl \
--enable-tiff \
--enable-jpeg \
--enable-png \
--enable-gif"
system 'make'
end