set linker options only on PPC, not needed on x86

This commit is contained in:
Riccardo Mottola 2018-01-30 22:56:14 +01:00
parent 8e5ca58fab
commit 74793a8c76
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,9 @@ if CONFIG['MOZ_LINKER']:
if CONFIG['HAVE_CLOCK_MONOTONIC']:
OS_LIBS += CONFIG['REALTIME_LIBS']
OS_LIBS += ['-Wl,-stack_size,0x40000000,-stack_addr,0xf0000000']
# we build only on Darwin anyway
if CONFIG['OS_ARCH'] == 'Darwin' and CONFIG['CPU_TYPE'] == 'ppc':
OS_LIBS += ['-Wl,-stack_size,0x40000000,-stack_addr,0xf0000000']
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wshadow']