зеркало из https://github.com/mozilla/gecko-dev.git
Bug 818903 - Link with --build-id when available. r=ted
This commit is contained in:
Родитель
34ff2e18cd
Коммит
f96ed5a637
|
@ -1426,6 +1426,13 @@ if test "$GNU_CC"; then
|
|||
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
||||
AC_MSG_RESULT([no])
|
||||
LDFLAGS=$_SAVE_LDFLAGS)
|
||||
AC_MSG_CHECKING([for --build-id option to ld])
|
||||
_SAVE_LDFLAGS=$LDFLAGS
|
||||
LDFLAGS="$LDFLAGS -Wl,--build-id"
|
||||
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
||||
AC_MSG_RESULT([no])
|
||||
LDFLAGS=$_SAVE_LDFLAGS)
|
||||
|
||||
|
||||
# Check for -mssse3 on $CC
|
||||
AC_MSG_CHECKING([if toolchain supports -mssse3 option])
|
||||
|
|
|
@ -1194,6 +1194,13 @@ if test "$GNU_CC"; then
|
|||
DSO_PIC_CFLAGS='-fPIC'
|
||||
ASFLAGS="$ASFLAGS -fPIC"
|
||||
|
||||
AC_MSG_CHECKING([for --build-id option to ld])
|
||||
_SAVE_LDFLAGS=$LDFLAGS
|
||||
LDFLAGS="$LDFLAGS -Wl,--build-id"
|
||||
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
||||
AC_MSG_RESULT([no])
|
||||
LDFLAGS=$_SAVE_LDFLAGS)
|
||||
|
||||
# Turn on GNU-specific warnings:
|
||||
# -Wall - turn on a lot of warnings
|
||||
# -pedantic - this is turned on below
|
||||
|
|
Загрузка…
Ссылка в новой задаче