Commit fac2e84c authored by satmandu's avatar satmandu Committed by GitHub

Add flto to packages to be built (#5259)

* Add flto
parent 96af53ba
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment