Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2018 15:33:41 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        ports@FreeBSD.org
Subject:   Re: Cross-compiling a port
Message-ID:  <20180218.153341.1093602856993900054.yasu@utahime.org>
In-Reply-To: <D1684490-4D9F-4BF4-97E3-98562ADECFBC@waschbuesch.de>
References:  <D1684490-4D9F-4BF4-97E3-98562ADECFBC@waschbuesch.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello.

From: Martin Waschb=FCsch <martin@waschbuesch.de>
Subject: Cross-compiling a port
Date: Sun, 18 Feb 2018 07:22:17 +0100

> how would I go about cross-compilinga port for another ARCH?
> E.g. I am running 11.1-RELEASE on amd64 and would like to compile a p=
ort for i386.
> It does not seem to be enough to set the ARCH and TARGET_ARCH environ=
ment variables:
> =

> e.g. something like
> =

> cd /usr/ports/archivers/zip
> env 'TARGET_ARCH=3Di386 ARCH=3Di386' make
> =

> will still produce a 64bit binary.
> =

> file /usr/ports/archivers/zip/work/stage/usr/local/bin/zip
> /usr/ports/archivers/zip/work/stage/usr/local/bin/zip: ELF 64-bit LSB=
 executable, x86-64, version 1 (FreeBSD), dynamically linked, interpret=
er /libexec/ld-elf.so.1, for FreeBSD 11.1, FreeBSD-style, stripped
> =

> so I must be missing something here.

Probably easiest way is to use ports-mgmt/poudriere.

---
Yasuhiro KIMURA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180218.153341.1093602856993900054.yasu>