зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1485759 - Pass --build-id=sha1 to the linker instead of --build-id. r=froydnj
BFD ld's --build-id means --build-id=sha1, but with lld it means --build-id=fast. Both support the explicit --build-id=sha1, so use that. Gold supports --build-id=sha1 too. ld64, used for mac builds doesn't support neither --build-id=sha1 nor --build-id.
This commit is contained in:
Родитель
2ef817ea52
Коммит
1a6f5a62c7
|
@ -492,9 +492,9 @@ if test "$GNU_CC"; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
LDFLAGS=$_SAVE_LDFLAGS)
|
LDFLAGS=$_SAVE_LDFLAGS)
|
||||||
|
|
||||||
AC_MSG_CHECKING([for --build-id option to ld])
|
AC_MSG_CHECKING([for --build-id=sha1 option to ld])
|
||||||
_SAVE_LDFLAGS=$LDFLAGS
|
_SAVE_LDFLAGS=$LDFLAGS
|
||||||
LDFLAGS="$LDFLAGS -Wl,--build-id"
|
LDFLAGS="$LDFLAGS -Wl,--build-id=sha1"
|
||||||
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
LDFLAGS=$_SAVE_LDFLAGS)
|
LDFLAGS=$_SAVE_LDFLAGS)
|
||||||
|
|
|
@ -552,9 +552,9 @@ if test "$GNU_CC"; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
LDFLAGS=$_SAVE_LDFLAGS)
|
LDFLAGS=$_SAVE_LDFLAGS)
|
||||||
|
|
||||||
AC_MSG_CHECKING([for --build-id option to ld])
|
AC_MSG_CHECKING([for --build-id=sha1 option to ld])
|
||||||
_SAVE_LDFLAGS=$LDFLAGS
|
_SAVE_LDFLAGS=$LDFLAGS
|
||||||
LDFLAGS="$LDFLAGS -Wl,--build-id"
|
LDFLAGS="$LDFLAGS -Wl,--build-id=sha1"
|
||||||
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
LDFLAGS=$_SAVE_LDFLAGS)
|
LDFLAGS=$_SAVE_LDFLAGS)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче