X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=configure.ac;h=8ed606c769460c1b04e3486513fa0888a1677fa7;hb=84fd2ebfbcd743840a173a2e8b4268991e0fcc78;hp=9bfe1e3ecd2b2420273ad1145f977b1f9808f0d1;hpb=6aeef5464497a2dfd2eb63c7e4aa3349c7794eae;p=mesa.git diff --git a/configure.ac b/configure.ac index 9bfe1e3ecd2..8ed606c7694 100644 --- a/configure.ac +++ b/configure.ac @@ -103,8 +103,8 @@ dnl LLVM versions LLVM_REQUIRED_GALLIUM=3.3.0 LLVM_REQUIRED_OPENCL=3.9.0 LLVM_REQUIRED_R600=3.9.0 -LLVM_REQUIRED_RADEONSI=3.9.0 -LLVM_REQUIRED_RADV=3.9.0 +LLVM_REQUIRED_RADEONSI=4.0.0 +LLVM_REQUIRED_RADV=4.0.0 LLVM_REQUIRED_SWR=3.9.0 dnl Check for progs @@ -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 @@ -1270,10 +1283,10 @@ AC_ARG_ENABLE([xa], [enable_xa=no]) AC_ARG_ENABLE([gbm], [AS_HELP_STRING([--enable-gbm], - [enable gbm library @<:@default=yes except cygwin@:>@])], + [enable gbm library @<:@default=yes except cygwin and macOS@:>@])], [enable_gbm="$enableval"], [case "$host_os" in - cygwin*) + cygwin* | darwin*) enable_gbm=no ;; *) @@ -2780,6 +2793,18 @@ if test "x$enable_llvm" = xyes; then fi fi fi + + dnl The gallium-xlib GLX and gallium OSMesa targets directly embed the + dnl swr/llvmpipe driver into the final binary. Adding LLVM_LIBS results in + dnl the LLVM library propagated in the Libs.private of the respective .pc + dnl file which ensures complete dependency information when statically + dnl linking. + if test "x$enable_glx" == xgallium-xlib; then + GL_PC_LIB_PRIV="$GL_PC_LIB_PRIV $LLVM_LIBS" + fi + if test "x$enable_gallium_osmesa" = xyes; then + OSMESA_PC_LIB_PRIV="$OSMESA_PC_LIB_PRIV $LLVM_LIBS" + fi fi AM_CONDITIONAL(HAVE_GALLIUM_SVGA, test "x$HAVE_GALLIUM_SVGA" = xyes)