[Pkg-openssl-devel] Bug#465248: Bug#465248: long term mass bug filing for cross

Christian Svensson christian at cmd.nu
Sun Jan 26 17:04:56 UTC 2014


Hi,

> As far as I know, what really should happen is that you either
> set the CROSS_COMPILE environment or pass --cross-compile-prefix
> to Configure so that tools like nm also get the version for the
> host architecture.

We have binutils-multiarch which provides /usr/bin/ar with friends and
can handle all supported architectures.
So while we only need to set CC, it's a pity to need to depend on
binutils-multiarch. I like your proposal below much more.

> So maybe it should be:
> DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
> DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
> ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
>         export CROSS_COMPILE ?= $(DEB_HOST_GNU_TYPE)-
> endif

Yes, that's very nice.

>
> But then you might not like that it's doing something different when
> cross compiling,

I have no issues with it as long as it's simple and straight forward.

>
> and I don't have a test environment to check
> that this actually works.

It works for me when cross-compiling for or1k using sbuild.



More information about the Pkg-openssl-devel mailing list