From owner-freebsd-ports@freebsd.org Sun Feb 18 06:22:23 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0CDC1F15B79 for ; Sun, 18 Feb 2018 06:22:23 +0000 (UTC) (envelope-from martin@waschbuesch.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9CB4C852A7 for ; Sun, 18 Feb 2018 06:22:22 +0000 (UTC) (envelope-from martin@waschbuesch.de) Received: by mailman.ysv.freebsd.org (Postfix) id 5DCB6F15B71; Sun, 18 Feb 2018 06:22:22 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49BCEF15B6F for ; Sun, 18 Feb 2018 06:22:22 +0000 (UTC) (envelope-from martin@waschbuesch.de) Received: from relay02.waschbuesch.it (relay02.waschbuesch.it [IPv6:2a00:cba0:100::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.waschbuesch.it", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D28C9852A1 for ; Sun, 18 Feb 2018 06:22:21 +0000 (UTC) (envelope-from martin@waschbuesch.de) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=waschbuesch.de; s=dkim; h=To:Date:Message-Id:Subject:Mime-Version: Content-Transfer-Encoding:Content-Type:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=h8U7kAMvR7Xe+5nxKCvxHfTAo0l/Tr0FbFetCnYOD1c=; b=dqQahc++Clz5fv9c80HzNWvQRe fTukOO4V27S7RKKMQfC9C9lAwvEI6snzNieyJVDBZl3vCtjIAYE7HA59Im9/mJ3fgd5avS/Ya7peD wvNcFQEtXfPjLs0C/tsn8qU75m3TC6QZjUXJ6vQ0Dvl4K9Zvn0uN/mV5B6UlqkBvB4LQ=; Received: by relay02.waschbuesch.it with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim) (envelope-from ) id 1enIMd-0003DW-6i for ports@FreeBSD.org; Sun, 18 Feb 2018 06:22:19 +0000 From: =?utf-8?Q?Martin_Waschb=C3=BCsch?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Cross-compiling a port Message-Id: Date: Sun, 18 Feb 2018 07:22:17 +0100 To: ports@FreeBSD.org X-Mailer: Apple Mail (2.3445.5.20) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Feb 2018 06:22:23 -0000 Hi there, 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 port = for i386. It does not seem to be enough to set the ARCH and TARGET_ARCH = environment 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, interpreter = /libexec/ld-elf.so.1, for FreeBSD 11.1, FreeBSD-style, stripped so I must be missing something here.=