Different values of environment variables during build time and run time, eg. JAVA_HOME and PATH

Jian LUO jian.luo.cn at gmail.com
Mon Oct 10 21:49:35 UTC 2016


Hi,

I don't think it counts as cross compiling since Java (at least in my case)
is cross platform. Just wanted to compile Java with one JDK and run with
another.

Jian

On Oct 10, 2016 20:05, "Manik Taneja" <manik at canonical.com> wrote:

>
>
> On Mon, Oct 10, 2016 at 6:33 AM, Jian LUO <jian.luo.cn at gmail.com> wrote:
>
>> Hi List,
>>
>> Is there any formal way in snapcraft  to set environment variables
>> separately for build time and run time? The use case I'm facing is building
>> a Java snap on amd64 host for armhf target.
>>
> Snapcraft does not support cross-compilation. Consider building natively
> on armhf, or using this as reference-
>
> https://github.com/snapcore/snapd/blob/master/docs/cross-build.md
>
> and let us know if you see any issues.
>
> /Manik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161010/3ec1810c/attachment.html>


More information about the Snapcraft mailing list