mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
osx: ld doesn't support --build-id
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
7ad7a07c88
commit
f8ed9f24d5
2 changed files with 14 additions and 1 deletions
13
configure.ac
13
configure.ac
|
|
@ -685,6 +685,19 @@ AC_LINK_IFELSE(
|
|||
LDFLAGS=$save_LDFLAGS
|
||||
AM_CONDITIONAL(HAVE_LD_DYNAMIC_LIST, test "$have_ld_dynamic_list" = "yes")
|
||||
|
||||
dnl
|
||||
dnl OSX linker does not support build-id
|
||||
dnl
|
||||
case "$host_os" in
|
||||
darwin*)
|
||||
LD_BUILD_ID=""
|
||||
;;
|
||||
*)
|
||||
LD_BUILD_ID="-Wl,--build-id=sha1"
|
||||
;;
|
||||
esac
|
||||
AC_SUBST([LD_BUILD_ID])
|
||||
|
||||
dnl
|
||||
dnl compatibility symlinks
|
||||
dnl
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ mesa_dri_drivers_la_LDFLAGS = \
|
|||
-module \
|
||||
-no-undefined \
|
||||
-avoid-version \
|
||||
-Wl,--build-id=sha1 \
|
||||
$(LD_BUILD_ID) \
|
||||
$(BSYMBOLIC) \
|
||||
$(GC_SECTIONS) \
|
||||
$(LD_NO_UNDEFINED)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue