зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1429282 - Explicitly link against a bunch of OSX frameworks we end up linking. r=gps
The OSX linker apparently decides on its own to link against system frameworks. We end up with libxul linked to 6 frameworks that were never given on the command line, and we do use symbols from those. Interestingly, for those frameworks that don't appear on the command line, there is no determinism in how stubs for lazy bindings (equivalent to Linux's PLT, AIUI) are laid out in the binary. But for those that do appear on the command line, the layout is deterministic. So add those frameworks to the command line. With this change, the remaining difference between two builds of the same changeset on try is due to symbol tables for profiling. Stripping those (like we do on beta/release) produces no differences. --HG-- extra : rebase_source : 151342f3c0067c16c26e111247f6da58f4b639be
This commit is contained in:
Родитель
d45f599f7a
Коммит
083542c950
|
@ -2165,7 +2165,7 @@ cocoa)
|
|||
LDFLAGS="$LDFLAGS -framework Cocoa -lobjc"
|
||||
# Use -Wl as a trick to avoid -framework and framework names from
|
||||
# being separated by AC_SUBST_LIST.
|
||||
TK_LIBS='-Wl,-framework,CoreLocation -Wl,-framework,QuartzCore -Wl,-framework,Carbon -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,AddressBook -Wl,-framework,OpenGL -Wl,-framework,Security -Wl,-framework,ServiceManagement'
|
||||
TK_LIBS='-Wl,-framework,Foundation -Wl,-framework,CoreFoundation -Wl,-framework,CoreLocation -Wl,-framework,QuartzCore -Wl,-framework,Carbon -Wl,-framework,CoreAudio -Wl,-framework,CoreVideo -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,AddressBook -Wl,-framework,OpenGL -Wl,-framework,Security -Wl,-framework,ServiceManagement -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -Wl,-framework,AppKit'
|
||||
TK_CFLAGS=""
|
||||
CFLAGS="$CFLAGS $TK_CFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $TK_CFLAGS"
|
||||
|
|
Загрузка…
Ссылка в новой задаче