diff options
| -rw-r--r-- | meta/recipes-devtools/llvm/llvm/llvm-config | 9 | ||||
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 10 |
2 files changed, 9 insertions, 10 deletions
diff --git a/meta/recipes-devtools/llvm/llvm/llvm-config b/meta/recipes-devtools/llvm/llvm/llvm-config index a45f38c650..5e4ded2da5 100644 --- a/meta/recipes-devtools/llvm/llvm/llvm-config +++ b/meta/recipes-devtools/llvm/llvm/llvm-config | |||
| @@ -29,6 +29,15 @@ for arg in "$@"; do | |||
| 29 | --ldflags) | 29 | --ldflags) |
| 30 | output="${output} ${LDFLAGS}" | 30 | output="${output} ${LDFLAGS}" |
| 31 | ;; | 31 | ;; |
| 32 | --shared-mode) | ||
| 33 | output="${output} shared" | ||
| 34 | ;; | ||
| 35 | --libs) | ||
| 36 | output="${output} -lLLVM" | ||
| 37 | ;; | ||
| 38 | --link-shared) | ||
| 39 | break | ||
| 40 | ;; | ||
| 32 | *) | 41 | *) |
| 33 | remain="${remain} ${arg}" | 42 | remain="${remain} ${arg}" |
| 34 | ;; | 43 | ;; |
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 3754bb14de..f9007f3187 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
| @@ -54,17 +54,7 @@ ANY_OF_DISTRO_FEATURES:class-target = "opengl vulkan" | |||
| 54 | 54 | ||
| 55 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" | 55 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" |
| 56 | 56 | ||
| 57 | # By placing llvm-config in the target sysroot bindir, it will then map values | ||
| 58 | # to the target libdir magically. We can safely add to path as there are no other binaries | ||
| 59 | # there. | ||
| 60 | PATH:prepend = "${STAGING_BINDIR_CROSS}:${STAGING_BINDIR}:" | ||
| 61 | MESA_LLVM_RELEASE ?= "${LLVMVERSION}" | 57 | MESA_LLVM_RELEASE ?= "${LLVMVERSION}" |
| 62 | do_configure:prepend () { | ||
| 63 | if [ -e ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ]; then | ||
| 64 | cp ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ${STAGING_BINDIR} | ||
| 65 | cp ${STAGING_BINDIR_NATIVE}/llvm-config ${STAGING_BINDIR} | ||
| 66 | fi | ||
| 67 | } | ||
| 68 | 58 | ||
| 69 | # set the MESA_BUILD_TYPE to either 'release' (default) or 'debug' | 59 | # set the MESA_BUILD_TYPE to either 'release' (default) or 'debug' |
| 70 | # by default the upstream mesa sources build a debug release | 60 | # by default the upstream mesa sources build a debug release |
