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

Add flto to packages to be built (#5259)

* Add flto
parent 96af53ba
...@@ -20,7 +20,9 @@ class Libgdiplus < Package ...@@ -20,7 +20,9 @@ class Libgdiplus < Package
depends_on 'imake' => :build depends_on 'imake' => :build
def self.build def self.build
system "./configure #{CREW_OPTIONS} \ system "CFLAGS='-flto=auto' CXXFLAGS='-flto=auto'
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--with-libexif \ --with-libexif \
--with-libtiff \ --with-libtiff \
--with-jpeg \ --with-jpeg \
......
...@@ -17,7 +17,9 @@ class Libwebp < Package ...@@ -17,7 +17,9 @@ class Libwebp < Package
def self.build def self.build
system "env NOCONFIGURE=1 ./autogen.sh" system "env NOCONFIGURE=1 ./autogen.sh"
system "./configure #{CREW_OPTIONS} \ system "CFLAGS='-flto=auto' CXXFLAGS='-flto=auto'
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--enable-libwebpmux \ --enable-libwebpmux \
--enable-libwebpdemux \ --enable-libwebpdemux \
--enable-libwebpdecoder \ --enable-libwebpdecoder \
......
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