When building gtest libxul with LTO, the fact that StaticXULComponentStart is not passed first to the linker makes the linker pull the NSModule symbols out of all the other objects first, presumably because linking the gtest objects (which appear first) pulls code from the other non StaticXULComponent* objects first. So, to make things link properly with LTO, we trick the build system to always put StaticXULComponentStart first.
10 lines
328 B
Python
10 lines
328 B
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
Library('xul-gtest')
|
|
|
|
Libxul_defines()
|