mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Use -dead_strip option on Mac if the linker supports it. Bug 300047, r=pinkerton a=bsmedberg
This commit is contained in:
parent
c70e951ba6
commit
64e2d853e9
@ -1291,6 +1291,13 @@ case "$target" in
|
||||
DLL_SUFFIX=".dylib"
|
||||
DSO_LDOPTS=''
|
||||
STRIP="$STRIP -x -S"
|
||||
|
||||
dnl check for the presence of the -dead_strip linker flag
|
||||
HAVE_DEAD_STRIP=
|
||||
if gcc -o conftest -dynamiclib -Wl,-dead_strip >/dev/null 2>&1 ; then
|
||||
rm conftest
|
||||
MOZ_OPTIMIZE_LDFLAGS="-Wl,-dead_strip"
|
||||
fi
|
||||
case "${target_cpu}" in
|
||||
powerpc*)
|
||||
_PLATFORM_DEFAULT_TOOLKIT='mac'
|
||||
|
Loading…
x
Reference in New Issue
Block a user