Use -dead_strip option on Mac if the linker supports it. Bug 300047, r=pinkerton a=bsmedberg

This commit is contained in:
bryner%brianryner.com 2005-07-14 17:52:17 +00:00
parent c70e951ba6
commit 64e2d853e9

View File

@ -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'