# Copyright 2015 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
# cairo's aclocal.float.m4 doesn't work with --gc-sections. | |
cros_pre_src_prepare_cairo_no_gc_sections() { | |
filter-ldflags -Wl,--gc-sections | |
} | |
cros_pre_src_configure_cairo_flags() { | |
# gcc 4.9 needs this to compile it. | |
# upstream bug is at | |
# https://bugs.freedesktop.org/show_bug.cgi?id=77060 | |
append-flags -fno-lto | |
} |