diff --git a/mozilla/build/autoconf/expandlibs.m4 b/mozilla/build/autoconf/expandlibs.m4 index ac2aaf8..e015eeb 100644 --- a/mozilla/build/autoconf/expandlibs.m4 +++ b/mozilla/build/autoconf/expandlibs.m4 @@ -52,8 +52,9 @@ if test "$GCC_USE_GNU_LD"; then EXPAND_LIBS_ORDER_STYLE=section-ordering-file, EXPAND_LIBS_ORDER_STYLE=) LDFLAGS="$_SAVE_LDFLAGS" + LD_OPT="-Wl,--verbose" if test -z "$EXPAND_LIBS_ORDER_STYLE"; then - if AC_TRY_COMMAND(${CC-cc} ${DSO_LDOPTS} ${LDFLAGS} -o conftest -Wl,--verbose 2> /dev/null | sed -n '/^===/,/^===/p' | grep '\.text'); then + if AC_TRY_COMMAND(${CC-cc} ${DSO_LDOPTS} ${LDFLAGS} -o conftest ${LD_OPT}) 2> /dev/null | sed -n '/^===/,/^===/p' | grep '\.text'; then EXPAND_LIBS_ORDER_STYLE=linkerscript else EXPAND_LIBS_ORDER_STYLE=none