Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-oe][PATCH] llvm: install llvm-config in crossscripts
@ 2013-05-31 13:48 Jonathan Liu
  2013-05-31 14:20 ` Jonathan Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Liu @ 2013-05-31 13:48 UTC (permalink / raw)
  To: openembedded-devel

The llvm-config script was being installed to the native sysroot but not
in crossscripts. As a result, recipes would pick up the native
llvm-config which would give flags for native LLVM instead of target
LLVM and result in compile errors.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta-oe/recipes-core/llvm/llvm.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc
index a56fda0..59f4f25 100644
--- a/meta-oe/recipes-core/llvm/llvm.inc
+++ b/meta-oe/recipes-core/llvm/llvm.inc
@@ -160,6 +160,7 @@ llvm_sysroot_preprocess() {
 
         install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
         install -m 0755 bin/llvm-config${LLVM_RELEASE} ${SYSROOT_DESTDIR}${bindir_crossscripts}
+        install -m 0755 bin/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}
 }
 
 do_install_virtclass-native() {
-- 
1.8.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-oe][PATCH] llvm: install llvm-config in crossscripts
  2013-05-31 13:48 [meta-oe][PATCH] llvm: install llvm-config in crossscripts Jonathan Liu
@ 2013-05-31 14:20 ` Jonathan Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Liu @ 2013-05-31 14:20 UTC (permalink / raw)
  To: Jonathan Liu; +Cc: openembedded-devel

On 31/05/2013 11:48 PM, Jonathan Liu wrote:
> The llvm-config script was being installed to the native sysroot but not
> in crossscripts. As a result, recipes would pick up the native
> llvm-config which would give flags for native LLVM instead of target
> LLVM and result in compile errors.
>
> Signed-off-by: Jonathan Liu <net147@gmail.com>
> ---
>   meta-oe/recipes-core/llvm/llvm.inc | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc
> index a56fda0..59f4f25 100644
> --- a/meta-oe/recipes-core/llvm/llvm.inc
> +++ b/meta-oe/recipes-core/llvm/llvm.inc
> @@ -160,6 +160,7 @@ llvm_sysroot_preprocess() {
>   
>           install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
>           install -m 0755 bin/llvm-config${LLVM_RELEASE} ${SYSROOT_DESTDIR}${bindir_crossscripts}
> +        install -m 0755 bin/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}
>   }
>   
>   do_install_virtclass-native() {
Please disregard this patch. It seems to be installing it incorrectly.

Regards,
Jonathan


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-31 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-31 13:48 [meta-oe][PATCH] llvm: install llvm-config in crossscripts Jonathan Liu
2013-05-31 14:20 ` Jonathan Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox